nenok.lc.hugin
Class HJoinTree

java.lang.Object
  extended by nenok.lc.JoinTree
      extended by nenok.lc.hugin.HJoinTree
All Implemented Interfaces:
Iterable<Node>

public class HJoinTree
extends JoinTree

The join tree corresponding to the HUGIN architecture.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class nenok.lc.JoinTree
JoinTree.Construction
 
Field Summary
 
Fields inherited from class nenok.lc.JoinTree
adapter, root
 
Constructor Summary
HJoinTree(Knowledgebase kb, Collection<Domain> queries, Algorithm algo)
          Constructor:
 
Method Summary
 Node createNode()
           
 String getArchitecture()
           
 void scale()
          Performs the scaling operations for this architecture.
 boolean verify(Class type)
          Verifies that the given knowledgebase can indeed be used with this architecture.
 
Methods inherited from class nenok.lc.JoinTree
answer, collect, containsRemoteData, countNodes, distribute, getAdapter, getAllocator, getCollectTime, getConstructionAlgorithm, getConstructionData, getDistributeTime, getLargestDomain, getProcessorSet, getPropagationTime, getQueries, getRoot, getTreeDomain, isBinary, isCollected, isDistributed, iterator, makeBinary, propagate, setRoot, toASCII, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HJoinTree

public HJoinTree(Knowledgebase kb,
                 Collection<Domain> queries,
                 Algorithm algo)
          throws ConstrException
Constructor:

Parameters:
kb - The knowledgebase from which this jointree is constructed.
queries - The set of queries that are covered by this join tree.
algo - The construction algorithm.
Throws:
ConstrException - Exceptions throws during construction process.
Method Detail

verify

public boolean verify(Class type)
Description copied from class: JoinTree
Verifies that the given knowledgebase can indeed be used with this architecture.

Specified by:
verify in class JoinTree
Parameters:
type - The type of the locators that are contained in the knowledgebase.
Returns:
true, if the knowledgebase satifies the mathematical restrictions for this architecture.
See Also:
JoinTree.verify(java.lang.Class)

getArchitecture

public String getArchitecture()
Specified by:
getArchitecture in class JoinTree
Returns:
The join tree's architecture type.
See Also:
JoinTree.getArchitecture()

scale

public void scale()
           throws LCException
Description copied from class: JoinTree
Performs the scaling operations for this architecture. This method is executed, if the valuations are of type Scalability.

Specified by:
scale in class JoinTree
Throws:
LCException - Exception thrown while executing the scaling operation.
See Also:
JoinTree.scale()

createNode

public Node createNode()
Specified by:
createNode in class JoinTree
Returns:
Returns a new node instance corresponding to the architecture type of this jointree.
See Also:
JoinTree.createNode()