EDU.gatech.cc.is.clay
Class b_Persist_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_Persist_s

public class b_Persist_s
extends NodeBoolean

Persist on a true value of embedded NodeBoolean for the prescribed amount of time.

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.
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
b_Persist_s(double t, NodeScalar im1)
          Instantiate an b_Persist_s operator.
 
Method Summary
 boolean Value(long timestamp)
          Return a boolean representing the persistant value of the output of the embedded schema.
 
Methods inherited from class EDU.gatech.cc.is.clay.NodeBoolean
booleanValue, doubleValue, intValue
 
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
 

Field Detail

DEBUG

public static final boolean DEBUG
Turn debug printing on or off.
Constructor Detail

b_Persist_s

public b_Persist_s(double t,
                   NodeScalar im1)
Instantiate an b_Persist_s operator.
Parameters:
t - double, how long a true value should persist (seconds).
im1 - NodeScalar, the embedded perceptual schema that generates a value to persist.
Method Detail

Value

public boolean Value(long timestamp)
Return a boolean representing the persistant value of the output of the embedded schema.
Overrides:
Value in class NodeBoolean
Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
true or false.