swarm.space
Interface Ca2dC
- All Known Subinterfaces:
- ConwayLife2dC, Diffuse2dC
- All Known Implementing Classes:
- ConwayLife2dCImpl, Diffuse2dCImpl
- public interface Ca2dC
- extends DblBuffer2dS, DblBuffer2dC
Defines abstract protocol for cellular automata..
Inherits from DblBuffer2d, defines abstract protocol for cellular automata.
setNumStates
public Object setNumStates(int n)
- Record the number of states the CA understands.
initializeLattice
public Object 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
public Object createEnd()
- Check that numStates has been set.
- Specified by:
- createEnd in interface DblBuffer2dC