Class 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 Detail

      • emptyList

        protected List<T> emptyList
      • grid

        protected Grid<T> grid
      • extent

        protected int[] extent
      • mins

        protected int[] mins
      • maxs

        protected int[] maxs
    • Constructor Detail

      • AbstractGridQuery

        public AbstractGridQuery​(Grid<T> grid,
                                 T source,
                                 int... extent)
        Parameters:
        grid -
        source -
        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