Class LinkedTo

java.lang.Object
repast.simphony.query.space.projection.SpatialPredicate
repast.simphony.query.space.projection.LinkedTo
All Implemented Interfaces:
ProjectionPredicate

public class LinkedTo extends SpatialPredicate
Predicate that evalutes whether one object has a link to another in a projection. The result is affected by the directionality of the link.
Version:
$Revision$ $Date$
Author:
Nick Collier
  • Constructor Details

    • LinkedTo

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

    • 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 predeccessor of the second in the specified Network.