nenok.lc.hugin
Class HJoinTree
java.lang.Object
nenok.lc.JoinTree
nenok.lc.hugin.HJoinTree
- All Implemented Interfaces:
- Iterable<Node>
public class HJoinTree
- extends JoinTree
The join tree corresponding to the HUGIN architecture.
- Version:
- 1.1
- Author:
- Marc Pouly
Methods inherited from class nenok.lc.JoinTree |
answer, collect, countNodes, distribute, getAllocator, getCollectTime, getCommunicationCosts, getConstructionAlgorithm, getDistributeTime, getLargestDomain, getProcessorSet, getPropagationTime, getQueries, getRoot, getTaskFactory, getTreeDomain, isBinary, isCollected, isDistributed, iterator, makeBinary, propagate, setAllocator, toASCII, toString |
HJoinTree
public HJoinTree(Knowledgebase kb,
Collection<Domain> queries,
Algorithm algo,
Processor proc)
throws ConstrException,
RemoteException
- Constructor:
- Parameters:
kb
- The knowledgebase covered by this join tree.queries
- The set of queries that are covered by this join tree.algo
- The construction algorithm.proc
- The processor assigned to query nodes.
- Throws:
ConstrException
- Exceptions throws during construction process.
RemoteException
- Exceptions caused by communication problems when accessing the query processor.
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 VAException,
RemoteException
- Description copied from class:
JoinTree
- Performs the scaling operations for this architecture.
This method is executed, if the valuations are type
Scalability
.
- Specified by:
scale
in class JoinTree
- Throws:
VAException
- Exception thrown while executing the scaling operation.
RemoteException
- Exceptions caused by communication problems when accessing the query processor.- 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()