nenok.lc.constr.vvll
Class VariableContainer

java.lang.Object
  extended by nenok.lc.constr.vvll.VariableContainer
Direct Known Subclasses:
VariableContainerHeap

public class VariableContainer
extends Object

This container is used to construct a vvll during the join tree creation process. These variable container will be elements of a heap, therefore we need to implement the comparable interface. A VariableContainer contains:

Version:
1.0
Author:
Marc Pouly

Constructor Summary
VariableContainer(Variable var)
          Constructor:
 
Method Summary
 void addValuationContainer(ValuationContainer valCon)
          Adds a valuation container reference to the internal list.
 boolean equals(Object o)
           
 List<ValuationContainer> getValuationContainerRefs()
          Returns the container's valuation reference list.
 Variable getVariable()
          Returns the container's variable.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableContainer

public VariableContainer(Variable var)
Constructor:

Parameters:
var - The Variable of this container.
Method Detail

addValuationContainer

public void addValuationContainer(ValuationContainer valCon)
Adds a valuation container reference to the internal list.

Parameters:
valCon - The valuation container to add.

getVariable

public Variable getVariable()
Returns the container's variable.

Returns:
The container's variable.

getValuationContainerRefs

public List<ValuationContainer> getValuationContainerRefs()
Returns the container's valuation reference list.

Returns:
The list of all valuation container containing the container's variable.

equals

public boolean equals(Object o)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()