|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.LCFactory
public final class LCFactory
FACTORY class to build jointrees. Various methods to build join trees with different parameter lists are offered by this class. Basically, its main purposes is to simplify the user's life by preventing him from the details of using default values as parameters.
Constructor Summary | |
---|---|
LCFactory()
Constructor: Constructs binary Shenoy-Shafer join trees with an OSLA_SC construction algorithm. |
|
LCFactory(Architecture architecture)
Constructor: Constructs jointrees of the given architecture with an OSLA_SC construction algorithm. |
Method Summary | |
---|---|
JoinTree |
create(File file,
KB_Parser parser)
Create method of this FACTORY class. |
JoinTree |
create(Knowledgebase kb,
Collection<Domain> queries)
Create method of this FACTORY class. |
JoinTree |
create(Knowledgebase kb,
Domain... queries)
Create method of this FACTORY class. |
JoinTree |
rebuild(File file,
JT_Parser parser)
Deserializes a jointree from a file by use of the given parser instance. |
void |
setArchitecture(Architecture architecture)
Method to change the current factory's local computation architecture. |
void |
setConstructionAlgorithm(Algorithm algo)
Method to change the current factory's jointree construction algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LCFactory()
public LCFactory(Architecture architecture)
architecture
- The architecture of local computation, i.e. the corresponding architecture's enum type.Method Detail |
---|
public JoinTree create(Knowledgebase kb, Collection<Domain> queries) throws ConstrException
kb
- The knowledgebase from which the jointree is build.queries
- A list of domains that are ensured to be covered by the resulting jointree.
ConstrException
- Exceptions thrown by the jointree construction process.public JoinTree create(Knowledgebase kb, Domain... queries) throws ConstrException
kb
- The knowledgebase from whom the jointree is build.queries
- An array of domains that are ensured to be covered by the resulting jointree.
ConstrException
- Exceptions thrown by the jointree construction process.public JoinTree create(File file, KB_Parser parser) throws ConstrException, ParserException
Valuation
objects will be stored on the processor given
as argument. The factory's construction algorithm is used to build the tree.
file
- The file to parse.parser
- The user defined parser instance.
ConstrException
- Exceptions thrown by the jointree construction process.
ParserException
- Exceptions caused by the parsing process.public JoinTree rebuild(File file, JT_Parser parser) throws ConstrException
file
- The file containing a serialized jointree.parser
- The parser for the deserialization process.
ConstrException
- Exceptions thrown by the jointree construction process.public void setArchitecture(Architecture architecture)
architecture
- The new local computation architecture.public void setConstructionAlgorithm(Algorithm algo)
algo
- The new jointree construction algorithm.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |