public class RuleInstance<EventAtom> extends java.lang.Object implements IActivationNotificationProvider
public void setHandler(EventHandler<EventAtom> handler)
public Activation<EventAtom> createActivation(EventAtom atom)
public void fire(Activation<EventAtom> activation, Context context)
activation
- context
- public ActivationState activationStateTransition(Activation<EventAtom> activation, EventType event)
activation
- event
- public boolean addActivationNotificationListener(IActivationNotificationListener listener, boolean fireNow)
ActivationNotificationProvider.addActivationNotificationListener(org.eclipse.incquery.runtime.evm.notification.IActivationNotificationListener, boolean)
.addActivationNotificationListener
in interface IActivationNotificationProvider
listener
- fireNow
- public boolean removeActivationNotificationListener(IActivationNotificationListener listener)
ActivationNotificationProvider.removeActivationNotificationListener(org.eclipse.incquery.runtime.evm.notification.IActivationNotificationListener)
.removeActivationNotificationListener
in interface IActivationNotificationProvider
listener
- public RuleSpecification<EventAtom> getSpecification()
public EventFilter<? super EventAtom> getFilter()
public ActivationLifeCycle getLifeCycle()
public com.google.common.collect.Table<ActivationState,EventAtom,Activation<EventAtom>> getActivations()
public java.util.Collection<Activation<EventAtom>> getAllActivations()
public java.util.Collection<Activation<EventAtom>> getActivations(ActivationState state)
state
- public java.lang.String toString()
toString
in class java.lang.Object