Class LinkedFrom
- java.lang.Object
-
- repast.simphony.query.space.projection.SpatialPredicate
-
- repast.simphony.query.space.projection.LinkedFrom
-
- All Implemented Interfaces:
ProjectionPredicate
public class LinkedFrom extends SpatialPredicate
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
Constructors Constructor Description LinkedFrom(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Network network)
Evaluates the Network against this predicate.-
Methods inherited from class repast.simphony.query.space.projection.SpatialPredicate
evaluate, evaluate, evaluate
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(Network network)
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.
-
-