001    package com.hammurapi.eventbus;
002    
003    /**
004     * Inference filter is used to accept or reject inference commands posted by handlers to prevent inference loops
005     * and infinite inference.
006     * @author Pavel Vlasov
007     */
008    public interface InferenceFilter<E, P extends Comparable<P>, C, K, H extends EventBus.Handle<E,P,C>, S extends EventStore<E,P,C,H,S>> {
009    
010            boolean accept(InferenceCommand<E,P,C,K,H,S> inferenceCommand, EventBus<E,P,C,K,H,S> bus);
011    }