Documentation Set for Swarm 2.2
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

- - 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.

- - setNumStates: (unsigned)n
  Record the number of states the CA understands.

### 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