All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class EDU.gatech.cc.is.clay.NodeDouble

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

public abstract class NodeDouble
extends NodeScalar
A Node that returns double values. Since it is an extension of NodeScalar, it can return boolean and int values also.

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

Constructor Index

 o NodeDouble()

Method Index

 o booleanValue(long)
Convert double output to boolean.
 o doubleValue(long)
Get the double value.
 o intValue(long)
Convert double output to int.
 o Value(long)
Provides the value of the node.

Constructors

 o NodeDouble
 public NodeDouble()

Methods

 o Value
 public abstract double Value(long timestamp)
Provides the value of the node. If you implement a NodeDouble, you need to define this method.

Parameters:
timestamp - long indicates time of the request
Returns:
the value
 o doubleValue
 public double doubleValue(long timestamp)
Get the double value.

Parameters:
timestamp - long indicates time of the request
Returns:
the double value
Overrides:
doubleValue in class NodeScalar
 o intValue
 public int intValue(long timestamp)
Convert double output to int.

Parameters:
timestamp - long indicates time of the request
Returns:
the int value
Overrides:
intValue in class NodeScalar
 o booleanValue
 public boolean booleanValue(long timestamp)
Convert double output to boolean.

Parameters:
timestamp - long indicates time of the request
Returns:
the boolean value (true if non-zero).
Overrides:
booleanValue in class NodeScalar

All Packages  Class Hierarchy  This Package  Previous  Next  Index