EDU.gatech.cc.is.clay
Class d_Select_i

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_Select_i

public class d_Select_i
extends NodeDouble

Select one from an array of doubles based on the output of an embedded integer schema. The embedded selector outputs an integer, which indicates which of the doubles to output.

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.
 double[] embedded
          The double values that are the outputs selected from.
static int MAX_EMBEDDED
          Maximum number of choices to select from.
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
d_Select_i(NodeInt s)
          Instantiate a d_Select_i node.
 
Method Summary
 double Value(long timestamp)
          Return a double selectively activated based on the embedded NodeInt selector.
 
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 debug printing on or off.

MAX_EMBEDDED

public static final int MAX_EMBEDDED
Maximum number of choices to select from.

embedded

public double[] embedded
The double values that are the outputs selected from.
Constructor Detail

d_Select_i

public d_Select_i(NodeInt s)
Instantiate a d_Select_i node.
Parameters:
s - NodeInt, the selector.
Method Detail

Value

public double Value(long timestamp)
Return a double selectively activated based on the embedded NodeInt selector.
Overrides:
Value in class NodeDouble
Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the double.