nenok.lc.constr.vvll
Class ValuationContainer

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

public class ValuationContainer
extends Object

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

Version:
1.1
Author:
Marc Pouly
See Also:
Locator

Constructor Summary
ValuationContainer(Locator locator, Domain nodeDomain, 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.
 Locator getLocator()
           
 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(Locator locator,
                          Domain nodeDomain,
                          Node node)
Constructor:

Parameters:
locator - The valuation's locator.
nodeDomain - The domain of the node containing the locator.
node - A new jointree node instance that will cover the valuation referenced by th locator.
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.

getLocator

public Locator getLocator()
Returns:
The container's valuation locator.

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.