drcl.comp
Class Task
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.comp.ACATimer
|
+--drcl.comp.Task
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- Direct Known Subclasses:
- TaskFork, TaskNotify, TaskReceive, TaskSend, TaskSpecial
- public abstract class Task
- extends ACATimer
Defines a runtime task performed by a WorkerThread.
A specific type of task is further defined in a subclass.
- See Also:
- Serialized Form
|
Constructor Summary |
Task()
|
|
Method Summary |
static Task |
createNotify(java.lang.Object target_)
Creates a special task to notify on the targeted object. |
static Task |
createNotify(java.lang.Object target_,
double time_)
Creates a special task to notify on the targeted object. |
static Task |
createResume(Component c_,
double time_)
Creates a special task to resume the component system. |
static Task |
createRunnable(java.lang.Runnable r_,
double time_)
Creates a special task to execute the Runnable as a normal Java thread. |
static Task |
createStart(Component c_,
double time_)
Creates a special task to start the component system. |
static Task |
createStop(Component c_,
double time_)
Creates a special task to stop the component system. |
abstract void |
execute(WorkerThread thread_)
Executes the task in thread_. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
TYPE_START
public static final int TYPE_START
TYPE_STOP
public static final int TYPE_STOP
TYPE_RESUME
public static final int TYPE_RESUME
TYPE_RUNNABLE
public static final int TYPE_RUNNABLE
port
public Port port
- Port to which data is delivered.
returnPort
public Port returnPort
- The return port for server port operation.
Task
public Task()
createNotify
public static Task createNotify(java.lang.Object target_)
- Creates a special task to notify on the targeted object.
createNotify
public static Task createNotify(java.lang.Object target_,
double time_)
- Creates a special task to notify on the targeted object.
createStart
public static Task createStart(Component c_,
double time_)
- Creates a special task to start the component system.
createStop
public static Task createStop(Component c_,
double time_)
- Creates a special task to stop the component system.
createResume
public static Task createResume(Component c_,
double time_)
- Creates a special task to resume the component system.
createRunnable
public static Task createRunnable(java.lang.Runnable r_,
double time_)
- Creates a special task to execute the Runnable as a normal Java thread.
execute
public abstract void execute(WorkerThread thread_)
- Executes the task in
thread_.
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~