Class WithinMoore
- java.lang.Object
-
- repast.simphony.query.space.projection.SpatialPredicate
-
- repast.simphony.query.space.projection.WithinMoore
-
- All Implemented Interfaces:
ProjectionPredicate
public class WithinMoore extends SpatialPredicate
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
Constructors Constructor Description WithinMoore(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Grid grid)
Evaluates the Grid against this predicate.-
Methods inherited from class repast.simphony.query.space.projection.SpatialPredicate
evaluate, evaluate, evaluate
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(Grid grid)
Evaluates the Grid against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Overrides:
evaluate
in classSpatialPredicate
- Parameters:
grid
- the Grid to evaluate against.- Returns:
- false
-
-