swarm.space
Class Grid2dImpl

java.lang.Object
  |
  +--swarm.space.Discrete2dImpl
        |
        +--swarm.space.Grid2dImpl

public class Grid2dImpl
extends Discrete2dImpl
implements Discrete2dS, Discrete2d, Grid2dS, Grid2d

A 2d container class for agents.. Grid2d is a generic container class to represent agent position on a 2d lattice. It gets most of its behaviour from Discrete2d, adding extra code to check that you don't overwrite things by accident. Grid2d is pretty primitive: only one object can be stored at a site, no boundary conditions are implied, etc.


Constructor Summary
Grid2dImpl()
           
Grid2dImpl(ZoneImpl aZone)
          Default constructor for Impl class
Grid2dImpl(ZoneImpl aZone, int x, int y)
          Convenience constructor for Discrete2d lattice
 
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.space.Grid2d
putObject$atX$Y, setOverwriteWarnings
 
Methods implemented by this class for interface swarm.objectbase.SwarmObject
getCompleteProbeMap, getProbeForMessage, getProbeForVariable, getProbeMap
 
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

Grid2dImpl

public Grid2dImpl()

Grid2dImpl

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

Grid2dImpl

public Grid2dImpl(ZoneImpl aZone)
Default constructor for Impl class