objectdraw
Class SuspendEvent

java.lang.Object
  extended by objectdraw.SuspendEvent
All Implemented Interfaces:
ActiveObjectEventInterface
Direct Known Subclasses:
InterruptableSuspendEvent, UnintSuspendEvent

abstract class SuspendEvent
extends Object
implements ActiveObjectEventInterface

An ActiveObjectEventInterface event that causes ActiveObjects executing it to suspend. Depending on which subclass is used, suspended ActiveObjects either can be or cannot be interrupted.

Version:
1.1.1 released February 2005

Constructor Summary
SuspendEvent()
           
 
Method Summary
 boolean isExpired()
          Returns true if resume has been called and false otherwise.
 void resume()
          Causes ActiveObjects suspended using this SuspendEvent to resume.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface objectdraw.ActiveObjectEventInterface
execute
 

Constructor Detail

SuspendEvent

SuspendEvent()
Method Detail

isExpired

public boolean isExpired()
Returns true if resume has been called and false otherwise.

Specified by:
isExpired in interface ActiveObjectEventInterface
Returns:
whether resume has been called.

resume

public void resume()
Causes ActiveObjects suspended using this SuspendEvent to resume. Causes this SuspendEvent to expire, which means ActiveObjects calling this SuspendEvent's execute method in the future will not suspend.