public class NonRecurringEvent extends AbstractEvent
isRecurring()
to always return false
.DEFAULT_PRIORITY, FIRE_EVENT, HIGHEST_PRIORITY
Constructor and Description |
---|
NonRecurringEvent(String newType,
PolicyAgentInterface agent)
Creates a new NonRecurringEvent class with the specified type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRecurring()
Determines if this event is recurring.
|
void |
start()
Indicates that notification of the observers can now occur and queues the event
to the agent's event queue.
|
clone, compareTo, delete, fireEvent, getEventType, getID, getOwnerConversationID, getParameter, getPriority, getQueueTime, hasFired, keySet, setOwnerConversationID, setParameter, setParameters, setPriority, setQueueTime, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addObserver, countObservers, deleteObserver
public NonRecurringEvent(String newType, PolicyAgentInterface agent)
newType
- the type of the eventagent
- the agent that the event will be queued topublic final boolean isRecurring()
false
.false
, always.public void start()
Event
EventObserver.notifyEventOccurred(String, Event, Object)
method.