nenok.lc.constr
Class Deserializer
java.lang.Object
nenok.lc.constr.Algorithm
nenok.lc.constr.Deserializer
public class Deserializer
- extends Algorithm
This construction algorithm allows to read and rebuild
jointrees that were serialized to a file.
- Version:
- 1.1
- 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,
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)
getName
public String getName()
- Specified by:
getName
in class Algorithm
- Returns:
- The name of the construction algorithm.
- See Also:
Algorithm.getName()