An automaton joins together the map, the number of possible
states (held in the states attribute, a rule for the transition of
one cell state to another at a new time step, and manages a
(possibly empty) collection of agents that can move around
independently of the cellular network.
Methods
|
|
__init__
add
between
remove
running
update
|
|
__init__
|
__init__ ( self, map )
|
|
add
|
add ( self, agent )
Add an agent.
|
|
between
|
between ( self )
Hook to do things between generations.
|
|
remove
|
remove ( self, agent )
Remove an agent.
|
|
running
|
running ( self )
Is the automaton still running?
|
|
update
|
update ( self )
Update the automaton one time step.
|
|