Class SpatialPredicate
- java.lang.Object
-
- repast.simphony.query.space.projection.SpatialPredicate
-
- All Implemented Interfaces:
ProjectionPredicate
- Direct Known Subclasses:
Linked
,LinkedFrom
,LinkedTo
,Within
,WithinMoore
,WithinVN
public abstract class SpatialPredicate extends Object implements ProjectionPredicate
Abstract implementation of Predicate interface. All the implemented methods return false. Particular predicate implementations can override one or more of these methods as appropriate. For example, "within" only applies to networks, so the Within predicate would override evaluate(Network).- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description SpatialPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(ContinuousSpace space)
Evaluates the ContinuousSpace against this predicate.boolean
evaluate(Network network)
Evaluates the Network against this predicate.boolean
evaluate(Grid grid)
Evaluates the Grid against this predicate.boolean
evaluate(Projection projection)
Evaluates the projection against this predicate.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(Projection projection)
Evaluates the projection against this predicate. This is the default for any Projections not specifically named below.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
projection
- the projection to evaluate against.- Returns:
- false
-
evaluate
public boolean evaluate(Network network)
Evaluates the Network against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
network
- the projection to evaluate against.- Returns:
- false
-
evaluate
public boolean evaluate(Grid grid)
Evaluates the Grid against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
grid
- the Grid to evaluate against.- Returns:
- false
-
evaluate
public boolean evaluate(ContinuousSpace space)
Evaluates the ContinuousSpace against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
space
- the continuous space to evaluate against.- Returns:
- false
-
-