nenok.constr
Class Deserializer
java.lang.Object
nenok.constr.Algorithm
nenok.constr.Deserializer
public class Deserializer
- extends Algorithm
This construction algorithm allows to read and rebuild jointrees that were
serialized into a file.
- Version:
- $LastChangedRevision: 554 $
$LastChangedDate: 2008-03-26 14:19:57 +0100 (Mi, 26 Mrz 2008) $
- Author:
- Marc Pouly
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Deserializer
public Deserializer(File file,
JT_Parser parser)
- Constructor:
- Parameters:
file
- The file that contains the serialized jointree.parser
- The parser to deserialize the given file.
buildTree
public Node buildTree(JoinTree.Construction data)
throws ConstrException
- 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.- See Also:
Algorithm.buildTree(nenok.lc.JoinTree.Construction)
getName
public String getName()
- Specified by:
getName
in class Algorithm
- Returns:
- The name of the construction algorithm.
- See Also:
Algorithm.getName()