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
  • Field Details

    • emptyList

      protected List<T> emptyList
    • grid

      protected Grid<T> grid
    • point

      protected GridPoint point
    • extent

      protected int[] extent
    • dims

      protected GridDimensions dims
    • mins

      protected int[] mins
    • maxs

      protected int[] maxs
  • Constructor Details

    • AbstractGridQuery

      public AbstractGridQuery(Grid<T> grid, T source, int... extent)
      Parameters:
      grid -
      source -
      extent -
  • Method Details

    • 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