All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.gatech.cc.is.clay.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

Version:
$Revision: 1.2 $
Author:
Tucker Balch

Variable Index

 o DEBUG
Turn debug printing on or off.
 o embedded
The array of embedded NodeVec2s to select from.
 o MAX_EMBEDDED
Maximum number of embedded nodes.

Constructor Index

 o v_Select_vai(NodeInt)
Instantiate a v_Select_vai node.

Method Index

 o Value(long)
Return a Vec2 representing the selectively activated embedded node, based on the embedded selector.

Variables

 o DEBUG
 public static final boolean DEBUG
Turn debug printing on or off.

 o MAX_EMBEDDED
 public static final int MAX_EMBEDDED
Maximum number of embedded nodes.

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

Constructors

 o 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.

Methods

 o Value
 public Vec2 Value(long timestamp)
Return a Vec2 representing the selectively activated embedded node, based on the embedded selector.

Parameters:
timestamp - long, only get new information if timestamp > than last call or timestamp == -1.
Returns:
the Vec2.
Overrides:
Value in class NodeVec2

All Packages  Class Hierarchy  This Package  Previous  Next  Index