Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## swarm.space
Interface DblBuffer2dS

All Known Subinterfaces:
  Ca2d, Ca2dC, Ca2dS, ConwayLife2d, ConwayLife2dC, ConwayLife2dS, Diffuse2d, Diffuse2dC, Diffuse2dS

All Known Implementing Classes:
  DblBuffer2dCImpl, DblBuffer2dImpl

public interface DblBuffer2dS
extends Discrete2dS

A double buffered space.. DblBuffer2d augments Discrete2d to provide a form of double buffered space. Two lattices are maintained: lattice (the current state), and newLattice (the future state). All reads take place from lattice, all writes take place to newLattice. newLattice is copied to lattice when updateLattice is called. DblBuffer2d can be used to implement one model of concurrent action, like in Ca2ds. NOTE: be very careful if you're using low-level macro access to the world, in particular be sure that you preserve the write semantics on the newLattice.

Methods inherited from interface swarm.space.Discrete2dS
`setObjectFlag`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD