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.


Method Summary
 Object createEnd()
          Check that numStates has been set.
 Object initializeLattice()
          Use this to set up your CA to a default initial state.
 Object setNumStates(int n)
          Record the number of states the CA understands.
 
Methods inherited from interface swarm.space.DblBuffer2dC
create$setSizeX$Y
 
Methods inherited from interface swarm.space.Discrete2dC
makeOffsets, setSizeX$Y
 
Methods inherited from interface swarm.defobj.CreateC
create, createBegin
 
Methods inherited from interface swarm.defobj.CustomizeC
customizeBegin, customizeCopy, customizeEnd
 

Method Detail

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