Class LinkedFromBooleanExpression
- java.lang.Object
-
- repast.simphony.engine.watcher.query.LinkedFromBooleanExpression
-
- All Implemented Interfaces:
IBooleanExpression
public class LinkedFromBooleanExpression extends Object implements IBooleanExpression
Returns true if the watcher is linked from the watchee any 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 Summary
Constructors Constructor Description LinkedFromBooleanExpression(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(Object watcher, Object watchee, Object field)
Returns true if the watchee is linked from the watcher.String
getExpression()
-
-
-
Constructor Detail
-
LinkedFromBooleanExpression
public LinkedFromBooleanExpression(Context context)
-
-
Method Detail
-
getExpression
public String getExpression()
- Specified by:
getExpression
in interfaceIBooleanExpression
-
execute
public boolean execute(Object watcher, Object watchee, Object field)
Returns true if the watchee is linked from the watcher.- Specified by:
execute
in interfaceIBooleanExpression
- Parameters:
watcher
-watchee
-field
-- Returns:
- true if the watchee is a precedecessor of the watcher.
-
-