Class ContainsQuery<T>

java.lang.Object
repast.simphony.query.space.gis.AbstractGeometryQuery<T>
repast.simphony.query.space.gis.ContainsQuery<T>
All Implemented Interfaces:
Query<T>

public class ContainsQuery<T> extends AbstractGeometryQuery<T>
Query that determines what objects are contained by a geometry.
  • Constructor Details

    • ContainsQuery

      public ContainsQuery(Geography<T> geography, T sourceObject)
      Creates a ContainsQuery that will query the specified geography for objects that are contained by the geometry of the specified object.
      Parameters:
      geography - the geography to query
      sourceObject - the object whose geometry is the container
    • ContainsQuery

      public ContainsQuery(Geography<T> geography, org.locationtech.jts.geom.Geometry geom)
      Creates a ContainsQuery that will query the specified geography for objects that are contained by the specified geometry.
      Parameters:
      geography - the geography to query
      geom - the containing geometry
  • Method Details

    • createPredicate

      protected org.apache.commons.collections15.Predicate<T> createPredicate()
      Creates a predicate that tests for containment.
      Specified by:
      createPredicate in class AbstractGeometryQuery<T>
      Returns:
      a predicate that tests for containment.