nenok.constr.vvll
Class ValuationContainer

java.lang.Object
  extended by nenok.constr.vvll.ValuationContainer

public class ValuationContainer
extends Object

This container is used to construct a vvll. A valuation container containes:

Version:
$LastChangedRevision: 554 $
$LastChangedDate: 2008-03-26 14:19:57 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly

Constructor Summary
ValuationContainer(Node node)
          Constructor:
 
Method Summary
 void addChildNode(Node child)
          Adds a child node to the container's node.
 void addVariableContainer(Collection<VariableContainer> varCons)
          Adds a collection of variable container references to the container's internal list.
 void addVariableContainer(VariableContainer varCon)
          Adds a variable container to the container's internal list.
 boolean contains(VariableContainer varCon)
          Does the variable container reference list already contain a given variable container.
 Node getNode()
           
 List<VariableContainer> getVariableContainerRefs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuationContainer

public ValuationContainer(Node node)
Constructor:

Parameters:
node - A new jointree node instance that holds the valuation.
Method Detail

addVariableContainer

public void addVariableContainer(VariableContainer varCon)
Adds a variable container to the container's internal list.

Parameters:
varCon - The variable container reference.

addVariableContainer

public void addVariableContainer(Collection<VariableContainer> varCons)
Adds a collection of variable container references to the container's internal list.

Parameters:
varCons - The collection of variable container.

contains

public boolean contains(VariableContainer varCon)
Does the variable container reference list already contain a given variable container. Uses the equal method in the variable interface.

Parameters:
varCon - The given variable container.
Returns:
true, if the variable container is already contained in the variable container reference list.

getVariableContainerRefs

public List<VariableContainer> getVariableContainerRefs()
Returns:
The variable container foreach variable in the valuation's domain.

getNode

public Node getNode()
Returns:
The container's join tree node.

addChildNode

public void addChildNode(Node child)
Adds a child node to the container's node.

Parameters:
child - The child node to add.