Package repast.simphony.query.space.grid
Class AbstractGridQuery<T>
java.lang.Object
repast.simphony.query.space.grid.AbstractGridQuery<T>
- All Implemented Interfaces:
Query<T>
- Direct Known Subclasses:
MooreQuery
,VNQuery
Abstract base class for grid queries.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Field Details
-
emptyList
-
grid
-
point
-
extent
protected int[] extent -
dims
-
mins
protected int[] mins -
maxs
protected int[] maxs
-
-
Constructor Details
-
AbstractGridQuery
- Parameters:
grid
-source
-extent
-
-
-
Method Details
-
reset
Resets the query to use the specified source and extent.- Parameters:
source
- the source or "center" point of the neighborhood.extent
- defines the dimensions of the neighborhood in the x, y, and optionaly z dimensions. If the extent args are missing, they default to one
-