EDU.gatech.cc.is.clay
Class b_WatchDog_s
java.lang.Object
|
+--EDU.gatech.cc.is.clay.Node
|
+--EDU.gatech.cc.is.clay.NodeScalar
|
+--EDU.gatech.cc.is.clay.NodeBoolean
|
+--EDU.gatech.cc.is.clay.b_WatchDog_s
- public class b_WatchDog_s
- extends NodeBoolean
Monitor a boolean node for true values. If embedded node does not
go true before timeout, this node goes true.
For detailed information on how to configure behaviors, see the
Clay page.
Copyright
(c)1997, 1998 Tucker Balch
Field Summary |
static boolean |
DEBUG
Turn debug printing on or off. |
Method Summary |
boolean |
Value(long timestamp)
Return a boolean WatchDog value. |
Methods inherited from class EDU.gatech.cc.is.clay.Node |
initTrial |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEBUG
public static final boolean DEBUG
- Turn debug printing on or off.
b_WatchDog_s
public b_WatchDog_s(double t,
double p,
NodeScalar im1)
- Instantiate a b_WatchDog_s operator.
- Parameters:
t
- double, how long im1 can be false before a trigger (seconds).p
- double, how long a true value should persist (seconds) when triggered.im1
- NodeScalar, the embedded node that generates a value
to watch.
Value
public boolean Value(long timestamp)
- Return a boolean WatchDog value.
- Overrides:
- Value in class NodeBoolean
- Parameters:
timestamp
- long, only get new information if timestamp > than last call
or timestamp == -1.- Returns:
- true or false.