Package repast.simphony.query.space.grid
Class GridCell<T>
- java.lang.Object
-
- repast.simphony.query.space.grid.GridCell<T>
-
public class GridCell<T> extends Object
Encapsulates a Grid point location and the objects at that point.- Author:
- Nick Collier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridPoint
getPoint()
Gets the location of this GridCell.Iterable<T>
items()
Gets an iterable of the objects held by this GridCell.int
size()
Gets the number of object held by this GridCell.
-
-
-
Method Detail
-
size
public int size()
Gets the number of object held by this GridCell.- Returns:
- the number of object held by this GridCell.
-
items
public Iterable<T> items()
Gets an iterable of the objects held by this GridCell.- Returns:
- an iterable of the objects held by this GridCell.
-
getPoint
public GridPoint getPoint()
Gets the location of this GridCell.- Returns:
- the location of this GridCell.
-
-