|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMulti2DGrid
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 |
|---|
java.util.List getObjectsAt(int x,
int y)
java.util.Iterator getIteratorAt(int x,
int y)
Cell getCellAt(int x,
int y)
int getCellSizeAt(int x,
int y)
x - the x coordinatey - the y coordinate
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 | |||||||||