com.cra.bnet.engine
Class AbstractQueueNode

java.lang.Object
  |
  +--com.cra.bnet.engine.AbstractNode
        |
        +--com.cra.bnet.engine.AbstractQueueNode
All Implemented Interfaces:
AmgNode, QueueNode
Direct Known Subclasses:
AddNode, MultiplyNode

public abstract class AbstractQueueNode
extends AbstractNode
implements QueueNode

Skeletal implementation of the QueueNode interface. Handles all functionality related to the OnQueue property.


Field Summary
 
Fields inherited from class com.cra.bnet.engine.AbstractNode
derivativeName, name, valueName
 
Constructor Summary
AbstractQueueNode()
           
 
Method Summary
 boolean isOnQueue()
          Returns true if this node is on the queue and false if it is not.
 void setOnQueue(boolean onQueue)
          Sets this node's OnQueue property to the specified value.
 
Methods inherited from class com.cra.bnet.engine.AbstractNode
addChild, addParent, computeDerivative, computeValue, createName, 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
 
Methods inherited from interface com.cra.bnet.engine.AmgNode
getChildren, getDerivative, getDerivativeName, getName, getParents, getValue, getValueName, reset
 

Constructor Detail

AbstractQueueNode

public AbstractQueueNode()
Method Detail

isOnQueue

public boolean isOnQueue()
Description copied from interface: QueueNode
Returns true if this node is on the queue and false if it is not.

Specified by:
isOnQueue in interface QueueNode
Returns:
true if this node is on the queue and false if it is not.

setOnQueue

public void setOnQueue(boolean onQueue)
Description copied from interface: QueueNode
Sets this node's OnQueue property to the specified value.

Specified by:
setOnQueue in interface QueueNode
Parameters:
onQueue - true if this node is on the queue and false if it is not.