nenok.lc.ss
Class SSNode

java.lang.Object
  extended by nenok.lc.Node
      extended by nenok.lc.ss.SSNode

public class SSNode
extends Node

This is the node class implementation that belongs to the Shenoy-Shafer architecture. Internally, this class stores messages within a LinkedHashMap in order to ensure that the combination order equals the order messages arrive.

Version:
$LastChangedRevision: 557 $
$LastChangedDate: 2008-03-26 14:23:32 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly

Field Summary
 
Fields inherited from class nenok.lc.Node
adapter, content
 
Constructor Summary
SSNode(Adapter adapter)
          Constructor:
 
Method Summary
 void collect()
          Executes the collect algorithm for this node.
 void distribute()
          Executes the distribute algorithm for this node.
protected  void setScalingFactor(Labeled factor)
          Helper method to set the scaling factor to the root node.
 
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
 

Constructor Detail

SSNode

public SSNode(Adapter adapter)
Constructor:

Parameters:
adapter - The adapter for this node.
Method Detail

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()

setScalingFactor

protected void setScalingFactor(Labeled factor)
                         throws LCException
Helper method to set the scaling factor to the root node.

Parameters:
factor - The scaling factor.
Throws:
LCException - Generic local computation exception.