Class 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 Detail

      • LinkedFrom

        public LinkedFrom​(Object obj1,
                          Object obj2)
        Creates a LinkedTo predicate that will evaluate whether or not the first object has a link from the second.
        Parameters:
        obj1 -
        obj2 -
    • Method Detail

      • evaluate

        public boolean evaluate​(Network network)
        Description copied from class: SpatialPredicate
        Evaluates the Network against this predicate.
        Specified by:
        evaluate in interface ProjectionPredicate
        Overrides:
        evaluate in class SpatialPredicate
        Parameters:
        network - the network to evaluate against.
        Returns:
        true if the first object is a successor of the second in the specified Network.