Documentation Set for Swarm 2.0.1
Prev
Reference X. Space Library
Next
Ca2d
Name
Ca2d -- Defines abstract protocol for cellular automata.
Description
Inherits from DblBuffer2d, defines abstract protocol for cellular automata.
Protocols adopted by Ca2d
DblBuffer2d
Methods
Phase: Creating
-
setNumStates:
(unsigned)
n
Record the number of states the CA understands.
-
initializeLattice
Use this to set up your CA to a default initial state. Unimplemented in Ca2d; subclass this to set up initial state of lattice.
-
createEnd
Check that numStates has been set.
Phase: Using
-
stepRule
One iteration of the CA rule. Unimplemented in Ca2d; subclass this to implement your CA rule.
Prev
Home
Next
Space Library
Up
ConwayLife2d