public abstract class RecurringEvent extends AbstractEvent
isRecurring()
to always return true
.Modifier and Type | Field and Description |
---|---|
private boolean |
stop |
DEFAULT_PRIORITY, FIRE_EVENT, HIGHEST_PRIORITY
Constructor and Description |
---|
RecurringEvent(String newType,
PolicyAgentInterface agent)
Creates a new NonRecurringEvent class with the specified type.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Signals that this event should actually be deleted and not repeated after the next call to
delete() . |
void |
delete()
Doesn't delete the event unless
cancel() has been previously called |
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.
|
String |
toString() |
clone, compareTo, fireEvent, getEventType, getID, getOwnerConversationID, getParameter, getPriority, getQueueTime, hasFired, keySet, setOwnerConversationID, setParameter, setParameters, setPriority, setQueueTime
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addObserver, countObservers, deleteObserver
public RecurringEvent(String newType, PolicyAgentInterface agent)
newType
- the type of the eventagent
- the agent that this event will be queued topublic final boolean isRecurring()
true
.true
, always.public void cancel()
delete()
.public void delete()
cancel()
has been previously calleddelete
in class AbstractEvent
AbstractEvent.delete()
public void start()
Event
EventObserver.notifyEventOccurred(String, Event, Object)
method.public String toString()
toString
in class AbstractEvent