|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for adding and retrieving the occupants of a grid cell. Multiple occupancy grids allow for more than one object to occupy the cell at a time. This Cell object is container for the multiple occupants of the grid.
| Method Summary | |
void |
add(Object o)
Adds an object to this cell. |
void |
clear()
Clears all the objects from this cell. |
List |
getList()
Returns a List of the objects contained in this cell. |
Iterator |
iterator()
Returns an Iterator of the objects contained in this cell. |
void |
remove(Object o)
Removes the specified object from this cell. |
int |
size()
Returns the number of objects in this cell. |
| Method Detail |
public int size()
public void clear()
public void add(Object o)
public List getList()
public Iterator iterator()
public void remove(Object o)
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||