nenok.lc.constr
Class Sequence

java.lang.Object
  extended by nenok.lc.constr.Algorithm
      extended by nenok.lc.constr.Elimination
          extended by nenok.lc.constr.Sequence

public class Sequence
extends Elimination

The static sequence join tree construction algorithm. The user predefines the elimination sequence in the constructor of this algorithm class. The join tree will be construted by variable elimination respecting the order of the variable array.

Version:
1.1
Author:
Marc Pouly

Constructor Summary
Sequence(Variable[] sequence)
          Constructor:
 
Method Summary
 Node buildTree(JoinTree.Construction data)
          Method to build join trees.
 Variable[] getEliminationSequence()
           
 String getName()
           
 
Methods inherited from class nenok.lc.constr.Algorithm
getConstructionTime, optimize, setConstructionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequence

public Sequence(Variable[] sequence)
Constructor:

Parameters:
sequence - The elimination sequence.
Method Detail

buildTree

public Node buildTree(JoinTree.Construction data)
               throws ConstrException,
                      RemoteException
Description copied from class: Algorithm
Method to build join trees. The JoinTree.Construction object given as argument contains all necessary informations for the construction process, this is: the knowledgebase, a set of queries that need to be covered by the join tree and the Node builder method for the type of architecture to be constructed.

Specified by:
buildTree in class Algorithm
Parameters:
data - Object that contains all necessary information to build join trees.
Returns:
The root node of the constructed join tree.
Throws:
ConstrException - Exceptions caused by the jointree construction process.
RemoteException - Exceptions caused by communication problems during the jointree construction process.
See Also:
Algorithm.buildTree(nenok.lc.JoinTree.Construction)

getEliminationSequence

public Variable[] getEliminationSequence()
Specified by:
getEliminationSequence in class Elimination
Returns:
The elimination sequence used by this algorithm.
See Also:
Elimination.getEliminationSequence()

getName

public String getName()
Specified by:
getName in class Algorithm
Returns:
The name of the construction algorithm.
See Also:
Algorithm.getName()