de.cesr.more.rs.geo.util
Class MGeoTorusDistanceQuery<AgentType>

java.lang.Object
  extended by repast.simphony.query.space.gis.AbstractGeometryQuery<AgentType>
      extended by 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

Field Summary
protected  boolean convert
           
protected  double distance
           
 
Fields inherited from class repast.simphony.query.space.gis.AbstractGeometryQuery
geography, geom, predicate, sourceObject
 
Constructor Summary
MGeoTorusDistanceQuery(repast.simphony.space.gis.Geography<AgentType> geography, double distance, AgentType 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
 

Field Detail

distance

protected double distance

convert

protected boolean convert
Constructor Detail

MGeoTorusDistanceQuery

public MGeoTorusDistanceQuery(repast.simphony.space.gis.Geography<AgentType> geography,
                              double distance,
                              AgentType sourceObject)
Parameters:
geography -
sourceObject -
Method Detail

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.