numbers
Class NodeValue

java.lang.Object
  |
  +--numbers.NodeValue

public class NodeValue
extends java.lang.Object

This is a unique identifier for the different types of Tree Node. These distinguish addition from rounding. There are no public constructors, so it can be guaranteed that each instantiation is unique and that a NodeValue with value="get" is always equal to another. The == operator can be used. TreeNodes with these different values should expect different parameters

See Also:
TreeNode

Field Summary
static NodeValue ADDEDTO
          TreeNodes of this type take one parameter that can be found in the TreeNode.getLeft().
static NodeValue GET
          TreeNodes of this type take one parameter that can be found in the TreeNode.getLeft().
static NodeValue MODNOUN
          TreeNodes of this type take one parameter that can be found in the TreeNode.getLeft().
static NodeValue PUT
          This has not been implemented.
static NodeValue ROUNDEDTOTHEFOLLOWINGDECIMALPLACE
          TreeNodes of this type take two parameters that.
private  java.lang.String value
           
static NodeValue VALUE
          TreeNodes of this type take no parameters.
static NodeValue VARIABLE
          TreeNodes of this type take no parameters.
 
Constructor Summary
private NodeValue(java.lang.String s)
          This is the private constructor.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

GET

public static final NodeValue GET
TreeNodes of this type take one parameter that can be found in the TreeNode.getLeft(). That parameter is an object that will be returned.

ROUNDEDTOTHEFOLLOWINGDECIMALPLACE

public static final NodeValue ROUNDEDTOTHEFOLLOWINGDECIMALPLACE
TreeNodes of this type take two parameters that. The parameter that can be found in the TreeNode.getLeft() is a Double that needs rounding. The parameter that can be found in the TreeNode.getRight() is an Integer that represents the decimal place to round to.

VALUE

public static final NodeValue VALUE
TreeNodes of this type take no parameters. The value of the sourse is returned.

VARIABLE

public static final NodeValue VARIABLE
TreeNodes of this type take no parameters. A Value from the parameter list is inserted here when the execute method is called.

PUT

public static final NodeValue PUT
This has not been implemented.

ADDEDTO

public static final NodeValue ADDEDTO
TreeNodes of this type take one parameter that can be found in the TreeNode.getLeft(). That parameter is a BootStrapFloat to be added to the sourse. This is a MutatingNumberCommunication.
See Also:
MutatingNumberCommunication

MODNOUN

public static final NodeValue MODNOUN
TreeNodes of this type take one parameter that can be found in the TreeNode.getLeft(). That parameter is an object that will be returned.

value

private java.lang.String value
Constructor Detail

NodeValue

private NodeValue(java.lang.String s)
This is the private constructor.