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

public class Linked extends SpatialPredicate
Predicate that evalutes whether two objects are "linked" in a projection. This is unaffected by the directionality of the link.
Version:
$Revision$ $Date$
Author:
Nick Collier
  • Constructor Details

    • Linked

      public Linked(Object obj1, Object obj2)
      Creates a Linked predicate that will evaluate whether or not the first object is linked 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 adjacent the second in the specified Network.