Class NamedLinkedFromBooleanExpression

java.lang.Object
repast.simphony.engine.watcher.query.NamedLinkedFromBooleanExpression
All Implemented Interfaces:
IBooleanExpression

public class NamedLinkedFromBooleanExpression extends Object implements IBooleanExpression
Returns true if the watcher is linked from the watchee in the named network in the current Context. Note that for an undirected network, "linked from" is identical to "linked."
Version:
$Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
Author:
Nick Collier
  • Constructor Details

    • NamedLinkedFromBooleanExpression

      public NamedLinkedFromBooleanExpression(String name, Context context)
  • Method Details

    • getExpression

      public String getExpression()
      Specified by:
      getExpression in interface IBooleanExpression
    • execute

      public boolean execute(Object watcher, Object watchee, Object field)
      Returns true if the watchee is a linked from the watcher in the named projection.
      Specified by:
      execute in interface IBooleanExpression
      Parameters:
      watcher -
      watchee -
      field -
      Returns:
      true if the watchee is a precedecessor of the watcher.