Class SpatialPredicate
java.lang.Object
repast.simphony.query.space.projection.SpatialPredicate
- All Implemented Interfaces:
ProjectionPredicate
- Direct Known Subclasses:
Linked
,LinkedFrom
,LinkedTo
,Within
,WithinMoore
,WithinVN
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(ContinuousSpace space) Evaluates the ContinuousSpace against this predicate.boolean
Evaluates the Network against this predicate.boolean
Evaluates the Grid against this predicate.boolean
evaluate
(Projection projection) Evaluates the projection against this predicate.
-
Constructor Details
-
SpatialPredicate
public SpatialPredicate()
-
-
Method Details
-
evaluate
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
Evaluates the Network against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
network
- the projection to evaluate against.- Returns:
- false
-
evaluate
Evaluates the Grid against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
grid
- the Grid to evaluate against.- Returns:
- false
-
evaluate
Evaluates the ContinuousSpace against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Parameters:
space
- the continuous space to evaluate against.- Returns:
- false
-