Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
CASUAL.misc.MandatoryThread Class Reference
Inheritance diagram for CASUAL.misc.MandatoryThread:

Public Member Functions

 MandatoryThread ()
 
 MandatoryThread (Runnable r)
 
synchronized void start ()
 
boolean isComplete ()
 
synchronized void waitFor ()
 
String toString ()
 
 MandatoryThread ()
 
 MandatoryThread (Runnable r)
 
synchronized void start ()
 
boolean isComplete ()
 
synchronized void waitFor ()
 
String toString ()
 

Detailed Description

extends the functionality of thread for better monitoring.

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Constructor & Destructor Documentation

CASUAL.misc.MandatoryThread.MandatoryThread ( )

constructor for thread sets up a blank Mandatory Thread.

CASUAL.misc.MandatoryThread.MandatoryThread ( Runnable  r)

constructor accepts a runnable to be used for the thread.

Parameters
rto be run in a different thread
CASUAL.misc.MandatoryThread.MandatoryThread ( )

constructor for thread sets up a blank Mandatory Thread.

CASUAL.misc.MandatoryThread.MandatoryThread ( Runnable  r)

constructor accepts a runnable to be used for the thread.

Parameters
rto be run in a different thread

Member Function Documentation

boolean CASUAL.misc.MandatoryThread.isComplete ( )

isComplete allows for monitoring of the progress of a thread. If the thread has started and is no longer alive this will return true. The MandatoryThread has done its job.

Returns
true if MandatoryThread is complete
boolean CASUAL.misc.MandatoryThread.isComplete ( )

isComplete allows for monitoring of the progress of a thread. If the thread has started and is no longer alive this will return true. The MandatoryThread has done its job.

Returns
true if MandatoryThread is complete
synchronized void CASUAL.misc.MandatoryThread.start ( )

starts the thread and sets the "hasStarted" boolean.

synchronized void CASUAL.misc.MandatoryThread.start ( )

starts the thread and sets the "hasStarted" boolean.

synchronized void CASUAL.misc.MandatoryThread.waitFor ( )

halts the current thread until the mandatoryThread has completed. If the thread has not started, it will wait for the thread to start.

synchronized void CASUAL.misc.MandatoryThread.waitFor ( )

halts the current thread until the mandatoryThread has completed. If the thread has not started, it will wait for the thread to start.


The documentation for this class was generated from the following file: