Class WithinMoore
java.lang.Object
repast.simphony.query.space.projection.SpatialPredicate
repast.simphony.query.space.projection.WithinMoore
- All Implemented Interfaces:
ProjectionPredicate
Predicate that evalutes whether one object is within the Moore
neighborhood of another in a grid projection.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionWithinMoore
(Object obj1, Object obj2, double distance) Creates a Within predicate that will evaluate whether or not the second object is a member of the Moore neighborhood of the first object. -
Method Summary
Methods inherited from class repast.simphony.query.space.projection.SpatialPredicate
evaluate, evaluate, evaluate
-
Constructor Details
-
WithinMoore
Creates a Within predicate that will evaluate whether or not the second object is a member of the Moore neighborhood of the first object.- Parameters:
obj1
-obj2
-
-
-
Method Details
-
evaluate
Evaluates the Grid against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Overrides:
evaluate
in classSpatialPredicate
- Parameters:
grid
- the Grid to evaluate against.- Returns:
- false
-