Package repast.simphony.query.space.grid
Class GridCell<T>
java.lang.Object
repast.simphony.query.space.grid.GridCell<T>
Encapsulates a Grid point location and the objects at that point.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GridCell
Creates a GridCell for the specified point.- Parameters:
pt
- the location of the grid cell.clazz
- the type of the objects the grid cell will hold
-
-
Method Details
-
size
public int size()Gets the number of object held by this GridCell.- Returns:
- the number of object held by this GridCell.
-
items
Gets an iterable of the objects held by this GridCell.- Returns:
- an iterable of the objects held by this GridCell.
-
getPoint
Gets the location of this GridCell.- Returns:
- the location of this GridCell.
-