policyMgmt
Class Event

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--policyMgmt.Event
Direct Known Subclasses:
TimeEvent

public class Event
extends java.util.EventObject

Base class for all Events of the policyMgmt package.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Event(java.lang.Object trigger)
          Create a new Event.
 
Method Summary
 java.lang.String getRole()
          Return the role-string of the event.
 java.lang.Object getTrigger()
          Return the Object that triggerd this Eventm usually an EventGenerator or an Element.
 void setRole(java.lang.String newRole)
          Set a role-string for this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event(java.lang.Object trigger)
Create a new Event. Semantically this means that the event ocurred in this moment. If the argument is an Element object the role attribute of the event will be set to the role of the element.
Parameters:
trigger - associated Element or triggering Object (EventGenerator)
Method Detail

setRole

public void setRole(java.lang.String newRole)
Set a role-string for this event.
Parameters:
newRole - the new role string

getRole

public java.lang.String getRole()
Return the role-string of the event.
Returns:
the role string

getTrigger

public java.lang.Object getTrigger()
Return the Object that triggerd this Eventm usually an EventGenerator or an Element.
Returns:
the triggering Object