de.cesr.more.rs.geo.util
Class MGeoTorusDistanceQuery<AgentType>
java.lang.Object
repast.simphony.query.space.gis.AbstractGeometryQuery<AgentType>
de.cesr.more.rs.geo.util.MGeoTorusDistanceQuery<AgentType>
- All Implemented Interfaces:
- repast.simphony.query.Query<AgentType>
public class MGeoTorusDistanceQuery<AgentType>
- extends repast.simphony.query.space.gis.AbstractGeometryQuery<AgentType>
MORe
Deals with toroidal spaces.
Requires much more computational time since it
does not perform a pre-selection.
- Date:
- 06.10.2011
Fields inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery |
geography, geom, predicate, sourceObject |
Method Summary |
protected org.apache.commons.collections15.Predicate<AgentType> |
createPredicate()
Creates a predicate that tests for intersection. |
protected void |
init(repast.simphony.space.gis.Geography<AgentType> geography,
double distance,
com.vividsolutions.jts.geom.Geometry location)
|
Iterable<AgentType> |
query()
Considers all objects in the geography as potential matches. |
Methods inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery |
query |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
distance
protected double distance
convert
protected boolean convert
MGeoTorusDistanceQuery
public MGeoTorusDistanceQuery(repast.simphony.space.gis.Geography<AgentType> geography,
double distance,
AgentType sourceObject)
- Parameters:
geography
- sourceObject
-
init
protected void init(repast.simphony.space.gis.Geography<AgentType> geography,
double distance,
com.vividsolutions.jts.geom.Geometry location)
query
public Iterable<AgentType> query()
- Considers all objects in the geography as potential matches.
- Specified by:
query
in interface repast.simphony.query.Query<AgentType>
- Overrides:
query
in class repast.simphony.query.space.gis.AbstractGeometryQuery<AgentType>
- See Also:
AbstractGeometryQuery.query()
createPredicate
protected org.apache.commons.collections15.Predicate<AgentType> createPredicate()
- Creates a predicate that tests for intersection.
- Specified by:
createPredicate
in class repast.simphony.query.space.gis.AbstractGeometryQuery<AgentType>
- Returns:
- a predicate that tests for intersection.