All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

Version:
$Revision: 1.2 $
Author:
Tucker Balch

Variable Index

 o DEBUG
Turn debug printing on or off.
 o embedded
The double values that are the outputs selected from.
 o MAX_EMBEDDED
Maximum number of choices to select from.

Constructor Index

 o d_Select_i(NodeInt)
Instantiate a d_Select_i node.

Method Index

 o Value(long)
Return a double selectively activated based on the embedded NodeInt 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 choices to select from.

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

Constructors

 o d_Select_i
 public d_Select_i(NodeInt s)
Instantiate a d_Select_i node.

Parameters:
s - NodeInt, the selector.

Methods

 o Value
 public double Value(long timestamp)
Return a double selectively activated based on the embedded NodeInt selector.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index