class Chemystal::ChemicalMachine

Overview

A Chemical Machine has a molecule soup and a reaction collection. When activated it runs reactions based on the molecules available in the soup as ressources for those reactions

Defined in:

chemystal/chemical_machine.cr

Instance Method Summary

Instance Method Detail

def add_molecule(molecule : Molecule) #

Adds a molecule to the soup


def add_reaction(reaction : Reaction) #

Adds a reaction to the collection


def run #