public abstract class EventProcessorAdapter<EventAtom>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
EventProcessorAdapter(RuleInstance<EventAtom> instance) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
activationExists(Event<EventAtom> event,
Activation<EventAtom> activation)
This method is called by findActivationForAtom if the activation
already exists for the given atom.
|
protected abstract void |
activationMissing(Event<EventAtom> event)
This method is called by findActivationForAtom if the activation
does not exists for the given atom.
|
protected RuleInstance<EventAtom> |
getInstance() |
void |
processEvent(Event<EventAtom> event)
This method is called with the atom corresponding to the
activation that is affected by the event.
|
protected EventProcessorAdapter(RuleInstance<EventAtom> instance)
public void processEvent(Event<EventAtom> event)
activationExists(Event, Activation) is called
with the Activation object, otherwise activationMissing(Event)
with the atom object.event - protected abstract void activationExists(Event<EventAtom> event, Activation<EventAtom> activation)
activation - protected abstract void activationMissing(Event<EventAtom> event)
atom - protected RuleInstance<EventAtom> getInstance()