|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.space.AbsMulti2DGrid
uchicago.src.sim.space.AbsMulti2DTorus
uchicago.src.sim.space.Multi2DTorus
public class Multi2DTorus
A torus object that can hold more than one object in its cells.
The cells themselves store their occupants without
any order. Use an OrderedMulti2DTorus if you need
the cell occupants to be stored in an ordered fashion. The object
return by getObjectAt is a BagCell.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.space.AbsMulti2DGrid |
|---|
matrix, roIter, roList, xSize, ySize |
| Fields inherited from interface uchicago.src.sim.space.Discrete2DSpace |
|---|
MOORE, VON_NEUMANN |
| Constructor Summary | |
|---|---|
Multi2DTorus(int xSize,
int ySize,
boolean sparse)
Creates this Multi2DGrid with the specified dimensions. |
|
| Method Summary | |
|---|---|
void |
putObjectAt(int x,
int y,
java.lang.Object object)
Puts the specified Object into the cell at the specified coordinates. |
| Methods inherited from class uchicago.src.sim.space.AbsMulti2DTorus |
|---|
clear, getCellAt, getCellSizeAt, getIteratorAt, getMatrix, getMooreNeighbors, getMooreNeighbors, getMooreNeighborsLoc, getMooreNeighborsLoc, getObjectAt, getObjectsAt, getValueAt, getVNNeighbors, getVNNeighbors, getVNNeighborsLoc, getVNNeighborsLoc, putValueAt, removeObjectAt, trim, xnorm, ynorm |
| Methods inherited from class uchicago.src.sim.space.AbsMulti2DGrid |
|---|
getSize, getSizeX, getSizeY, rangeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Multi2DTorus(int xSize,
int ySize,
boolean sparse)
xSize - the number of columns in the gridySize - the number of rows in the gridsparse - whether the grid will be sparsely populated or not| Method Detail |
|---|
public void putObjectAt(int x,
int y,
java.lang.Object object)
putObjectAt in interface Discrete2DSpaceputObjectAt in class AbsMulti2DTorusx - the x coordinatey - the y coordinateobject - the object to put
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||