eu.anorien.mhl
Interface Watcher


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

newFact

void newFact(Fact fact)
A new fact is now maintained in the library.


newFacts

void newFacts(java.util.Collection<Fact> facts)
Similar to newFact.


removedFact

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.


removedFacts

void removedFacts(java.util.Collection<Fact> facts)
Similar to removedFact.


newEvent

void newEvent(Event event)
A new event is now maintained in the library.


newEvents

void newEvents(java.util.Collection<Event> events)
Similar to newEvent.


removedEvent

void removedEvent(Event event)
An event is no longer being maintained by the library, either because it was pruned or confirmed to the application.


removedEvents

void removedEvents(java.util.Collection<Event> events)
Similar to removedEvent.


confirmedEvent

void confirmedEvent(Event event)
Parameters:
event - This event will no longer be maintained by the library, and has now a probability of 1.

confirmedEvents

void confirmedEvents(java.util.Collection<Event> events)
Similar to confirmedEvent.


bestHypothesis

void bestHypothesis(Hypothesis hypothesis)
Parameters:
hypothesis - The new best hypothesis.