swarm.space
Class Grid2dCImpl

java.lang.Object
  |
  +--swarm.PhaseCImpl
        |
        +--swarm.space.Grid2dCImpl

public class Grid2dCImpl
extends PhaseCImpl
implements Discrete2dS, Discrete2dC, Grid2dS, Grid2dC

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.


Fields inherited from class swarm.PhaseCImpl
nextPhase
 
Constructor Summary
Grid2dCImpl()
           
Grid2dCImpl(Grid2d nextPhase)
           
 
Methods implemented by this class for interface swarm.space.Discrete2dC
create$setSizeX$Y, createEnd, makeOffsets, setSizeX$Y
 
Methods implemented by this class for interface swarm.space.Grid2dC
create$setSizeX$Y
 
Methods implemented by this class for interface swarm.defobj.CreateC
create, createBegin, createEnd
 
Methods implemented by this class for interface swarm.defobj.CustomizeC
customizeBegin, customizeCopy, customizeEnd
 
Methods inherited from class swarm.PhaseCImpl
_copy_creating_phase_to_using_phase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid2dCImpl

public Grid2dCImpl(Grid2d nextPhase)

Grid2dCImpl

public Grid2dCImpl()