jopt.csp.spi.arcalgorithm.graph.node
Class GenericLongNode
java.lang.Object
jopt.csp.spi.arcalgorithm.graph.node.AbstractNode
jopt.csp.spi.arcalgorithm.graph.node.GenericNumNode
jopt.csp.spi.arcalgorithm.graph.node.GenericLongNode
- All Implemented Interfaces:
- ChoicePointDataSource, ChoicePointEntryListener, GenericNode, Node, NodeChangeListener, NodeChangeSource, Storable
- public class GenericLongNode
- extends GenericNumNode
A generic long node relating to a generic variable such as Xi which represents X1, X2, etc.
Method Summary |
int |
getNumberType()
Returns the type of number this node is based on. |
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.node.GenericNumNode |
addInternalRangeChangeListener, afterChoicePointPopEvent, afterChoicePointPushEvent, beforeChoicePointPopEvent, beforeChoicePointPushEvent, choicePointStackSet, clearDelta, domainModifiedMaxOffset, domainModifiedMinOffset, getIndices, getLargestMax, getLargestMax, getLargestMin, getLargestMin, getMax, getMin, getNode, getNodeCount, getNodeForIndex, getNodes, getPrecision, getSize, getSmallestMax, getSmallestMax, getSmallestMin, getSmallestMin, getState, isAnyBound, isBound, isInDomain, isOverRealInterval, nodeChange, rangeModifiedMaxOffset, rangeModifiedMinOffset, restoreState, setChoicePointEventListener, setChoicePointStack, setIndicesToNodeOffset, toString, valueModifiedMaxOffset, valueModifiedMinOffset, values |
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.node.AbstractNode |
addDomainChangeListener, addedToGraph, addRangeChangeListener, addValueChangeListener, equals, getName, hashCode, inGraph, removedFromGraph, removeDomainChangeListener, removeRangeChangeListener, removeValueChangeListener, setName |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
GenericLongNode
public GenericLongNode(java.lang.String name,
GenericIndex[] indices,
NumNode[] nodes)
- Constructor
- Parameters:
name
- unique name of this nodeindices
- array of indices that generic node is based uponnodes
- array of nodes that this generic node wraps
getNumberType
public int getNumberType()
- Returns the type of number this node is based on.
- Specified by:
getNumberType
in class GenericNumNode