EDU.gatech.cc.is.clay
Class NodeBoolean
java.lang.Object
|
+--EDU.gatech.cc.is.clay.Node
|
+--EDU.gatech.cc.is.clay.NodeScalar
|
+--EDU.gatech.cc.is.clay.NodeBoolean
- Direct Known Subclasses:
- b_CanKick_r, b_Close_vv, b_Equal_i, b_NonNegative_s, b_NonZero_s, b_NonZero_v, b_Not_s, b_Persist_s, b_SameXSign_vv, b_WatchDog_s
- public abstract class NodeBoolean
- extends NodeScalar
A Node that returns boolean values. Since it is an extension
of NodeScalar, it can return double and int values also.
For detailed information on how to configure behaviors, see the
Clay page.
Copyright
(c)1997, 1998 Tucker Balch
Method Summary |
boolean |
booleanValue(long timestamp)
Get the boolean value. |
double |
doubleValue(long timestamp)
Convert boolean output value to double. |
int |
intValue(long timestamp)
Convert boolean output to int. |
abstract boolean |
Value(long timestamp)
Provides the value of the node. |
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 |
NodeBoolean
public NodeBoolean()
Value
public abstract boolean Value(long timestamp)
- Provides the value of the node.
If you implement a NodeBoolean, you need to define
this method.
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the value
doubleValue
public double doubleValue(long timestamp)
- Convert boolean output value to double.
- Overrides:
- doubleValue in class NodeScalar
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the double value
intValue
public int intValue(long timestamp)
- Convert boolean output to int.
- Overrides:
- intValue in class NodeScalar
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the int value
booleanValue
public boolean booleanValue(long timestamp)
- Get the boolean value.
- Overrides:
- booleanValue in class NodeScalar
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the boolean value