eu.anorien.mhl
Interface Factory


public interface Factory

The Factory allows the application to create the necessary data structures for using the library.


Method Summary
 PrunerFactory getPrunerFactory()
           
 GeneratedHypotheses newGeneratedHypotheses(java.util.Collection<GeneratedHypothesis> hypotheses)
          Creates a new GeneratedHypothesis object which should be returned to the library when returning from the generate method of the HypothesesGenerator class.
 GeneratedHypothesis newGeneratedHypothesis(double probability, java.util.Set<Event> events, java.util.Set<Fact> facts)
          Creates a new generated hypothesis.
 HypothesesManager newHypothesesManager()
           
 

Method Detail

newHypothesesManager

HypothesesManager newHypothesesManager()

newGeneratedHypotheses

GeneratedHypotheses newGeneratedHypotheses(java.util.Collection<GeneratedHypothesis> hypotheses)
Creates a new GeneratedHypothesis object which should be returned to the library when returning from the generate method of the HypothesesGenerator class.

Parameters:
hypotheses - The generated hypotheses.

newGeneratedHypothesis

GeneratedHypothesis newGeneratedHypothesis(double probability,
                                           java.util.Set<Event> events,
                                           java.util.Set<Fact> facts)
Creates a new generated hypothesis.

Parameters:
probability - The hypothesis probability.
events - The new generated events.
facts - The new generated facts.
Returns:
The generated hypothesis.

getPrunerFactory

PrunerFactory getPrunerFactory()
Returns:
A factory of pruners.