swarm.space
Interface Discrete2dC
- All Known Subinterfaces:
- Ca2dC, ConwayLife2dC, DblBuffer2dC, Diffuse2dC, Grid2dC
- All Known Implementing Classes:
- DblBuffer2dCImpl, Grid2dCImpl, Discrete2dCImpl
- public interface Discrete2dC
- extends SwarmObjectC, SwarmObjectS, GridDataC, GridDataS
Root class of all 2d discrete spaces..
A Discrete2d is basically a 2d array of ids. Subclasses add particular space semantics onto this. Currently Discrete2d grids are accessed by integer pairs of X and Y coordinates.
Method Summary |
java.lang.Object |
create$setSizeX$Y(Zone aZone,
int x,
int y)
Convenience constructor for Discrete2d lattice |
java.lang.Object |
makeOffsets()
Given an array size, compute the offsets array that caches the multiplication by ysize. |
java.lang.Object |
setSizeX$Y(int x,
int y)
Set the world size. |
create$setSizeX$Y
public java.lang.Object create$setSizeX$Y(Zone aZone,
int x,
int y)
- Convenience constructor for Discrete2d lattice
setSizeX$Y
public java.lang.Object setSizeX$Y(int x,
int y)
- Set the world size.
makeOffsets
public java.lang.Object makeOffsets()
- Given an array size, compute the offsets array that caches the multiplication by ysize. See the discrete2dSiteAt macro.