|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Watcher
The application may register a Watcher, using the
register method of
the HypothesesManager class to: watch for changes
in the events and facts maintained by the library; receive confirmed facts
(with probability of 1); receive the current best hypothesis when it changes.
| Method Summary | |
|---|---|
void |
bestHypothesis(Hypothesis hypothesis)
|
void |
confirmedEvent(Event event)
|
void |
confirmedEvents(java.util.Collection<Event> events)
Similar to confirmedEvent. |
void |
newEvent(Event event)
A new event is now maintained in the library. |
void |
newEvents(java.util.Collection<Event> events)
Similar to newEvent. |
void |
newFact(Fact fact)
A new fact is now maintained in the library. |
void |
newFacts(java.util.Collection<Fact> facts)
Similar to newFact. |
void |
removedEvent(Event event)
An event is no longer being maintained by the library, either because it was pruned or confirmed to the application. |
void |
removedEvents(java.util.Collection<Event> events)
Similar to removedEvent. |
void |
removedFact(Fact fact)
A fact is no longer being maintained by the library, either because it was pruned or deleted after being requested in an hypothesis generation. |
void |
removedFacts(java.util.Collection<Fact> facts)
Similar to removedFact. |
| Method Detail |
|---|
void newFact(Fact fact)
void newFacts(java.util.Collection<Fact> facts)
newFact.
void removedFact(Fact fact)
void removedFacts(java.util.Collection<Fact> facts)
removedFact.
void newEvent(Event event)
void newEvents(java.util.Collection<Event> events)
newEvent.
void removedEvent(Event event)
void removedEvents(java.util.Collection<Event> events)
removedEvent.
void confirmedEvent(Event event)
event - This event will no longer be maintained by the library, and
has now a probability of 1.void confirmedEvents(java.util.Collection<Event> events)
confirmedEvent.
void bestHypothesis(Hypothesis hypothesis)
hypothesis - The new best hypothesis.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||