|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for grids and tori whose cells can hold more than one object.
| Field Summary |
| Fields inherited from interface uchicago.src.sim.space.Discrete2DSpace |
MOORE, VON_NEUMANN |
| Method Summary | |
Cell |
getCellAt(int x,
int y)
Gets the Cell object at the specified coordinates. |
int |
getCellSizeAt(int x,
int y)
Gets the size (number of occupants) of the cell at the specified location. |
java.util.Iterator |
getIteratorAt(int x,
int y)
Gets the iterator for the collection of objects at the specified coordinates. |
java.util.List |
getObjectsAt(int x,
int y)
Gets the List of objects at the specified coordinates. |
void |
removeObjectAt(int x,
int y,
java.lang.Object obj)
Removes the specified object from the specified location. |
| Methods inherited from interface uchicago.src.sim.space.Discrete2DSpace |
getMatrix, getObjectAt, getSize, getSizeX, getSizeY, getValueAt, putObjectAt, putValueAt |
| Method Detail |
public java.util.List getObjectsAt(int x,
int y)
public java.util.Iterator getIteratorAt(int x,
int y)
public Cell getCellAt(int x,
int y)
public int getCellSizeAt(int x,
int y)
x - the x coordinatey - the y coordinate
public void removeObjectAt(int x,
int y,
java.lang.Object obj)
x - the x coordinatey - the y coordinateobj - the object to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||