com.cra.bnet.engine
Class ConstantNode

java.lang.Object
  |
  +--com.cra.bnet.engine.AbstractNode
        |
        +--com.cra.bnet.engine.ConstantNode
All Implemented Interfaces:
AmgNode

public class ConstantNode
extends AbstractNode

Represents a constant node in the AMG.


Field Summary
 
Fields inherited from class com.cra.bnet.engine.AbstractNode
derivativeName, name, valueName
 
Constructor Summary
ConstantNode(double value)
           
 
Method Summary
protected  double computDerivative()
           
protected  double computeValue()
          Computes the value for this node.
protected  String createName()
           
 
Methods inherited from class com.cra.bnet.engine.AbstractNode
addChild, addParent, computeDerivative, getChildren, getDerivative, getDerivativeName, getName, getParents, getValue, getValueName, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantNode

public ConstantNode(double value)
Method Detail

computeValue

protected double computeValue()
Description copied from class: AbstractNode
Computes the value for this node.

Specified by:
computeValue in class AbstractNode
Returns:
the value for this node.

computDerivative

protected double computDerivative()

createName

protected String createName()
Specified by:
createName in class AbstractNode