swarm.space
Class Discrete2dImpl
java.lang.Object
|
+--swarm.space.Discrete2dImpl
- public class Discrete2dImpl
- extends Object
- implements SwarmObjectS, SwarmObject, Discrete2dS, Discrete2d
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.
Methods implemented by this class for interface swarm.space.Discrete2d |
copyDiscrete2d$toDiscrete2d,
fastFillWithObject,
fastFillWithValue,
fillWithObject,
fillWithValue,
getObjectAtX$Y,
getSizeX,
getSizeY,
getValueAtX$Y,
putObject$atX$Y,
putValue$atX$Y,
setDiscrete2d$toFile |
Methods implemented by this class for interface swarm.defobj.Drop |
drop |
Methods implemented by this class for interface swarm.defobj.DefinedObject |
compare,
describe,
describeID,
getDisplayName,
getTypeName,
getZone,
perform,
perform$with,
perform$with$with,
perform$with$with$with,
respondsTo,
setDisplayName,
xfprint,
xfprintid,
xprint,
xprintid |
Discrete2dImpl
public Discrete2dImpl()
Discrete2dImpl
public Discrete2dImpl(Zone aZone,
int x,
int y)
- Convenience constructor for Discrete2d lattice
Discrete2dImpl
public Discrete2dImpl(Zone aZone)
- Default constructor for Impl class