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


Fields inherited from class ponderEnforcement.ponderMC.policyObjects.events.EventConsumer
EVENT_CONSUMER_LEFT, EVENT_CONSUMER_NORMAL, EVENT_CONSUMER_RIGHT
 
Constructor Summary
MultEventConsumer(MultipleEventI newEventSpec, EventConsumer newParent, int newConsumerType, ObligationI newObligation)
          Constructor with a parent CompositeEventConsumer
MultEventConsumer(MultipleEventI newEventSpec, EventHandlerAdapterI newEvHandlerAdapter, ObligationI newObligation)
          Constructor with no parent, and with a reference to the EventHandlerAdapter
 
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 ponderEnforcement.ponderMC.policyObjects.events.EventConsumer
informEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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