Class LinkedFrom
java.lang.Object
repast.simphony.query.space.projection.SpatialPredicate
repast.simphony.query.space.projection.LinkedFrom
- All Implemented Interfaces:
ProjectionPredicate
Predicate that evalutes whether one object has a link from another in a projection. The
result is affected by the directionality of the link.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionLinkedFrom
(Object obj1, Object obj2) Creates a LinkedTo predicate that will evaluate whether or not the first object has a link from the second. -
Method Summary
Methods inherited from class repast.simphony.query.space.projection.SpatialPredicate
evaluate, evaluate, evaluate
-
Constructor Details
-
LinkedFrom
Creates a LinkedTo predicate that will evaluate whether or not the first object has a link from the second.- Parameters:
obj1
-obj2
-
-
-
Method Details
-
evaluate
Description copied from class:SpatialPredicate
Evaluates the Network against this predicate.- Specified by:
evaluate
in interfaceProjectionPredicate
- Overrides:
evaluate
in classSpatialPredicate
- Parameters:
network
- the network to evaluate against.- Returns:
- true if the first object is a successor of the second in the specified Network.
-