objectdraw
Interface ActiveObjectEventInterface

All Known Implementing Classes:
SuspendEvent, TerminateEvent

public 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.


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

Method Detail

execute

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

isExpired

public 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.