com.hammurapi.eventbus
Class InferenceChainLengthFilter<E,P extends Comparable<P>,C,K,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
java.lang.Object
com.hammurapi.eventbus.InferenceChainLengthFilter<E,P,C,K,H,S>
- All Implemented Interfaces:
- InferenceFilter<E,P,C,K,H,S>
public class InferenceChainLengthFilter<E,P extends Comparable<P>,C,K,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>
- extends Object
- implements InferenceFilter<E,P,C,K,H,S>
Discards events with length of inference chain greater than specified threshold, issues warning.
|
Method Summary |
boolean |
accept(InferenceCommand<E,P,C,K,H,S> inferenceCommand,
EventBus<E,P,C,K,H,S> bus)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InferenceChainLengthFilter
public InferenceChainLengthFilter(int threshold)
accept
public boolean accept(InferenceCommand<E,P,C,K,H,S> inferenceCommand,
EventBus<E,P,C,K,H,S> bus)
- Specified by:
accept in interface InferenceFilter<E,P extends Comparable<P>,C,K,H extends EventBus.Handle<E,P,C>,S extends EventStore<E,P,C,H,S>>