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
public abstract class AbstractGridQuery<T> extends Object implements Query<T>
Abstract base class for grid queries.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description AbstractGridQuery(Grid<T> grid, T source, int... extent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reset(T source, int... extent)
Resets the query to use the specified source and extent.
-
-
-
Method Detail
-
reset
public void reset(T source, int... extent)
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
-
-