EDU.gatech.cc.is.clay
Class NodeInt
java.lang.Object
|
+--EDU.gatech.cc.is.clay.Node
|
+--EDU.gatech.cc.is.clay.NodeScalar
|
+--EDU.gatech.cc.is.clay.NodeInt
- Direct Known Subclasses:
- i_FixedInt_, i_FSA_ba, i_InGripper_r, i_Learner_id, i_Merge_ba, i_Merge_ia, i_StepLearner_id
- public abstract class NodeInt
- extends NodeScalar
A Node that returns int values. Since it is an extension
of NodeScalar, it can return boolean and double 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)
Convert int output to boolean. |
double |
doubleValue(long timestamp)
Convert int output to double. |
int |
intValue(long timestamp)
The int value. |
abstract int |
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 |
NodeInt
public NodeInt()
Value
public abstract int Value(long timestamp)
- Provides the value of the node.
If you implement a NodeInt, you need to define
this method.
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the value
doubleValue
public double doubleValue(long timestamp)
- Convert int output 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)
- The int value.
- Overrides:
- intValue in class NodeScalar
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the int value
booleanValue
public boolean booleanValue(long timestamp)
- Convert int output to boolean.
- Overrides:
- booleanValue in class NodeScalar
- Parameters:
timestamp
- long indicates time of the request- Returns:
- the boolean value (true if non-zero).