EDU.gatech.cc.is.clay
Class d_Add_dd

java.lang.Object
  |
  +--EDU.gatech.cc.is.clay.Node
        |
        +--EDU.gatech.cc.is.clay.NodeScalar
              |
              +--EDU.gatech.cc.is.clay.NodeDouble
                    |
                    +--EDU.gatech.cc.is.clay.d_Add_dd

public class d_Add_dd
extends NodeDouble

Add the output of two NodeDoubles.

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

Copyright (c)1997, 1998 Tucker Balch


Field Summary
static boolean DEBUG
          Turn debugging on or off.
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
d_Add_dd(NodeDouble im1, NodeDouble im2)
          Instantiate a d_Add_dd schema.
 
Method Summary
 double Value(long timestamp)
          Return a double representing the sum.
 
Methods inherited from class EDU.gatech.cc.is.clay.NodeDouble
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 debugging on or off.
Constructor Detail

d_Add_dd

public d_Add_dd(NodeDouble im1,
                NodeDouble im2)
Instantiate a d_Add_dd schema. It will compute im1+im2.
Parameters:
im1 - NodeDouble, the embedded node that generates a double.
im2 - NodeDouble, an embedded node that generates a double.
Method Detail

Value

public double Value(long timestamp)
Return a double representing the sum.
Overrides:
Value in class NodeDouble
Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the vector difference.