swarm.space
Interface Grid2dC

All Known Implementing Classes:
Grid2dCImpl

public interface Grid2dC
extends Discrete2dS, Discrete2dC

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.


Method Summary
 Object create$setSizeX$Y(Zone aZone, int x, int y)
          Convenience constructor for Grid2d
 
Methods inherited from interface swarm.space.Discrete2dC
createEnd, makeOffsets, setSizeX$Y
 
Methods inherited from interface swarm.defobj.CreateC
create, createBegin
 
Methods inherited from interface swarm.defobj.CustomizeC
customizeBegin, customizeCopy, customizeEnd
 

Method Detail

create$setSizeX$Y

public Object create$setSizeX$Y(Zone aZone,
                                int x,
                                int y)
Convenience constructor for Grid2d
Specified by:
create$setSizeX$Y in interface Discrete2dC