nenok.lc.dp
Class DPNode
java.lang.Object
nenok.lc.Node
nenok.lc.dp.DPNode
public class DPNode
- extends Node
This is the node class implementation that belongs to the
dynamic programming architecture.
- Version:
- $LastChangedRevision: 557 $
$LastChangedDate: 2008-03-26 14:23:32 +0100 (Mi, 26 Mrz 2008) $
- Author:
- Marc Pouly
Methods inherited from class nenok.lc.Node |
addParent, addParents, findCoveringNode, findLargestDomain, findProcessors, getChild, getContent, getDomain, getLeaves, getNodes, getParents, getTotalDomain, getValuation, isBinary, isFull, makeBinary, removeParent, setChild, setContent, setDomain, subTreeSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DPNode
public DPNode(Adapter adapter)
- Constructor:
- Parameters:
adapter
- The adapter for this node.
collect
public void collect()
throws LCException
- Description copied from class:
Node
- Executes the collect algorithm for this node.
- Specified by:
collect
in class Node
- Throws:
LCException
- Exception caused by the collect propagation.- See Also:
Node.collect()
distribute
public void distribute()
throws LCException
- Description copied from class:
Node
- Executes the distribute algorithm for this node.
- Specified by:
distribute
in class Node
- Throws:
LCException
- Exception caused by the distribute propagation.- See Also:
Node.distribute()
getSolutionConfigurationEntry
protected Object getSolutionConfigurationEntry(FiniteVariable var)
throws LCException
- Returns the part of the solution configuration that corresponds to the given variable.
Note that the variable must be contained in the label of this node.
- Parameters:
var
- The variable onto which the solution configuration is projected.
- Returns:
- The value of the solution configuration at this variable.
- Throws:
LCException
- Exception thrown if the given variable is not part of this node label.