ponderEnforcement.ponderMC.policyObjects.events
Class MultEventConsumer
java.lang.Object
|
+--ponderEnforcement.ponderMC.policyObjects.events.EventConsumer
|
+--ponderEnforcement.ponderMC.policyObjects.events.MultEventConsumer
- public class MultEventConsumer
- extends EventConsumer
Function: An implementation of the NotificationListener interface
which handles SingleTimerEvent s
|
Method Summary |
void |
notifyEvent(PonderEventI event)
The embedded event of this multiple-event has occured |
boolean |
register()
Register the Ponder Event object specification given. |
boolean |
unregister()
Unregister for the subscribed event
Returns true if un-subscription succeded. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultEventConsumer
public MultEventConsumer(MultipleEventI newEventSpec,
EventConsumer newParent,
int newConsumerType,
ObligationI newObligation)
- Constructor with a parent CompositeEventConsumer
MultEventConsumer
public MultEventConsumer(MultipleEventI newEventSpec,
EventHandlerAdapterI newEvHandlerAdapter,
ObligationI newObligation)
- Constructor with no parent, and with a reference to the
EventHandlerAdapter
register
public boolean register()
- Register the Ponder Event object specification given.
Based on the Ponder Event sepcification creates an Elvin Subscription
- Overrides:
register in class EventConsumer
- Parameters:
newEventSpec - The Ponder Event specification- Returns:
- true if subscription succeded. False otherwise
unregister
public boolean unregister()
- Unregister for the subscribed event
Returns true if un-subscription succeded. False otherwise
- Overrides:
unregister in class EventConsumer
notifyEvent
public void notifyEvent(PonderEventI event)
- The embedded event of this multiple-event has occured