eu.anorien.mhl
Interface MayBeRequiredPredicate


public interface MayBeRequiredPredicate

Following the cluster splitting operation, it is possible that some clusters are created containing only events and/or facts which will never be requested for an hypothesis generation. These clusters will consume memory space, and will never be deleted.

This predicate should be provided to the library, via the setRequiredPredicate method of the HypothesesManager class. The predicate is used to determine if a cluster contains any events or facts which may be requested by the application, otherwise, the cluster will be deleted.


Method Summary
 boolean mayBeRequired(Event event)
           
 boolean mayBeRequired(Fact event)
           
 

Method Detail

mayBeRequired

boolean mayBeRequired(Event event)
Returns:
If the event may ever be requested by the application in an hypothesis generation.

mayBeRequired

boolean mayBeRequired(Fact event)
Returns:
If the fact may ever be requested by the application in an hypothesis generation.