EDU.gatech.cc.is.clay
Class v_Select_vai

java.lang.Object
  |
  +--EDU.gatech.cc.is.clay.Node
        |
        +--EDU.gatech.cc.is.clay.NodeVec2
              |
              +--EDU.gatech.cc.is.clay.v_Select_vai

public class v_Select_vai
extends NodeVec2

Selects one from an array of embedded NodeVec2s based on the output of an embedded integer schema. Configuration is by setting the embedded array to point to desired embedded NodeVec2s.

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.
 NodeVec2[] embedded
          The array of embedded NodeVec2s to select from.
static int MAX_EMBEDDED
          Maximum number of embedded nodes.
 
Fields inherited from class EDU.gatech.cc.is.clay.Node
DEBUG, embedded_nodes
 
Constructor Summary
v_Select_vai(NodeInt s)
          Instantiate a v_Select_vai node.
 
Method Summary
 Vec2 Value(long timestamp)
          Return a Vec2 representing the selectively activated embedded node, based on the embedded selector.
 
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 embedded nodes.

embedded

public NodeVec2[] embedded
The array of embedded NodeVec2s to select from.
Constructor Detail

v_Select_vai

public v_Select_vai(NodeInt s)
Instantiate a v_Select_vai node. The embedded selector outputs an integer which indicates which of the nodes to activate.
Parameters:
s - NodeInt, the selector.
Method Detail

Value

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