swarm.space
Class Discrete2dImpl

java.lang.Object
  |
  +--swarm.space.Discrete2dImpl
Direct Known Subclasses:
DblBuffer2dImpl, Grid2dImpl

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.


Constructor Summary
Discrete2dImpl()
           
Discrete2dImpl(ZoneImpl aZone)
          Default constructor for Impl class
Discrete2dImpl(ZoneImpl aZone, int x, int y)
          Convenience constructor for Discrete2d lattice
 
Methods implemented by this class for interface swarm.objectbase.SwarmObject
getCompleteProbeMap, getProbeForMessage, getProbeForVariable, getProbeMap
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Discrete2dImpl

public Discrete2dImpl()

Discrete2dImpl

public Discrete2dImpl(ZoneImpl aZone,
                      int x,
                      int y)
Convenience constructor for Discrete2d lattice

Discrete2dImpl

public Discrete2dImpl(ZoneImpl aZone)
Default constructor for Impl class