EDU.gatech.cc.is.clay
Class NodeDouble

java.lang.Object
  |
  +--EDU.gatech.cc.is.clay.Node
        |
        +--EDU.gatech.cc.is.clay.NodeScalar
              |
              +--EDU.gatech.cc.is.clay.NodeDouble
Direct Known Subclasses:
d_Add_dd, d_FixedDouble_, d_ReinforcementComm_r, d_Select_i

public abstract class NodeDouble
extends NodeScalar

A Node that returns double values. Since it is an extension of NodeScalar, it can return boolean and int values also.

For detailed information on how to configure behaviors, see the Clay page.

Copyright (c)1997, 1998 Tucker Balch


Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
NodeDouble()
           
 
Method Summary
 boolean booleanValue(long timestamp)
          Convert double output to boolean.
 double doubleValue(long timestamp)
          Get the double value.
 int intValue(long timestamp)
          Convert double output to int.
abstract  double 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
 

Constructor Detail

NodeDouble

public NodeDouble()
Method Detail

Value

public abstract double Value(long timestamp)
Provides the value of the node. If you implement a NodeDouble, you need to define this method.
Parameters:
timestamp - long indicates time of the request
Returns:
the value

doubleValue

public double doubleValue(long timestamp)
Get the double value.
Overrides:
doubleValue in class NodeScalar
Parameters:
timestamp - long indicates time of the request
Returns:
the double value

intValue

public int intValue(long timestamp)
Convert double 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)
Convert double output to boolean.
Overrides:
booleanValue in class NodeScalar
Parameters:
timestamp - long indicates time of the request
Returns:
the boolean value (true if non-zero).