objectdraw
Interface ActiveObjectEventInterface

All Known Implementing Classes:
InterruptableSuspendEvent, SuspendEvent, TerminateEvent, UnintSuspendEvent

interface ActiveObjectEventInterface

Objects implementing this interface can be used with ActiveObject's scheduleEvent and scheduleClassEvent methods to give ActiveObjects custom behaviors. See scheduleEvent and scheduleClassEvent methods in ActiveObject.

Version:
3.0
Author:
Cheng Hu

Method Summary
abstract  void execute()
          See scheduleEvent and scheduleClassEvent methods in ActiveObject.
abstract  boolean isExpired()
          Returns true if it is okay for this ActiveObjectEventInterface to be ignored.
 

Method Detail

execute

void execute()
See scheduleEvent and scheduleClassEvent methods in ActiveObject. ActiveObjects are scheduled to execute the code in this method.


isExpired

boolean isExpired()
Returns true if it is okay for this ActiveObjectEventInterface to be ignored. Note this does not mean this ActiveObjectEventInterface will be ignored. Note once this ActiveObjectEventInterface expires, it should not unexpire.

Returns:
whether this ActiveObjectEventInterface event is expired.