Class LinkedBooleanExpression

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

public class LinkedBooleanExpression extends Object implements IBooleanExpression
Returns true if the watcher is linked to the watchee, or watchee is linked to watcher in any network in the current Context.
Version:
$Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
Author:
Nick Collier
  • Constructor Details

    • LinkedBooleanExpression

      public LinkedBooleanExpression(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 watcher is a precedecessor of the watchee, or vice-versa.
      Specified by:
      execute in interface IBooleanExpression
      Parameters:
      watcher -
      watchee -
      field -
      Returns:
      true if the watcher is a precedecessor of the watchee, or vice-versa, otherwise false.