|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HypothesesManager
This is the class which controls most of the behavior of the library.
| Method Summary | |
|---|---|
void |
generateHypotheses(HypothesesGenerator generator,
java.util.Set<Event> reqEvents,
java.util.Set<Fact> reqFacts)
Request an hypothesis generation. |
java.util.Collection<Hypothesis> |
getAllHypotheses()
Returns all the hypotheses maintained by the library. |
Hypothesis |
getBestHypothesis()
Returns the current best Hypothesis. |
void |
register(Watcher watcher)
Register a watcher of the library. |
void |
setPruner(Pruner pruner)
Sets the pruner which will be used to prune the clusters. |
void |
setRequiredPredicate(MayBeRequiredPredicate requiredPredicate)
This predicate is used to identify clusters which will never be requested in the context of an hypothesis generation. |
| Method Detail |
|---|
void register(Watcher watcher)
watcher - The watcher to register.
void generateHypotheses(HypothesesGenerator generator,
java.util.Set<Event> reqEvents,
java.util.Set<Fact> reqFacts)
generator - The hypothesis generator which the library will invoke to
generate the new hypotheses.reqEvents - The events which the application needs to be available
for this hypothesis generation.reqFacts - The facts which the application needs to be available
for this hypothesis generation.Hypothesis getBestHypothesis()
java.util.Collection<Hypothesis> getAllHypotheses()
void setPruner(Pruner pruner)
composite pruner.
pruner - The new pruner.PrunerFactoryvoid setRequiredPredicate(MayBeRequiredPredicate requiredPredicate)
This predicate is used to identify clusters which will never be requested in the context of an hypothesis generation. These clusters occupy memory space needlessly and, ultimately, the application may crash without memory.
requiredPredicate - The new predicate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||