Package repast.simphony.query.space.gis
Class TouchesQuery<T>
- java.lang.Object
-
- repast.simphony.query.space.gis.AbstractGeometryQuery<T>
-
- repast.simphony.query.space.gis.TouchesQuery<T>
-
- All Implemented Interfaces:
Query<T>
public class TouchesQuery<T> extends AbstractGeometryQuery<T>
Query that returns objects touched by a geometry.
-
-
Field Summary
-
Fields inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery
geography, geom, predicate, sourceObject
-
-
Constructor Summary
Constructors Constructor Description TouchesQuery(Geography<T> geography, org.locationtech.jts.geom.Geometry geom)
Creates a Touches that will query the specified geography for objects that are touched by the specified geometry.TouchesQuery(Geography<T> geography, T sourceObject)
Creates a TouchesQuery that will query the specified geography for objects that are touched by the geometry of the specified object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.collections15.Predicate<T>
createPredicate()
Creates a predicate that tests for containment.-
Methods inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery
query, query
-
-
-
-
Constructor Detail
-
TouchesQuery
public TouchesQuery(Geography<T> geography, T sourceObject)
Creates a TouchesQuery that will query the specified geography for objects that are touched by the geometry of the specified object.- Parameters:
geography
- the geography to querysourceObject
- the object whose geometry is the container
-
-
Method Detail
-
createPredicate
protected org.apache.commons.collections15.Predicate<T> createPredicate()
Creates a predicate that tests for containment.- Specified by:
createPredicate
in classAbstractGeometryQuery<T>
- Returns:
- a predicate that tests for containment.
-
-