|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.ACATimer
drcl.comp.Task
Defines a runtime task performed by a WorkerThread.
A specific type of task is further defined in a subclass.
| Field Summary | |
Port |
port
Port to which data is delivered. |
Port |
returnPort
The return port for server port operation. |
static int |
TYPE_RESUME
|
static int |
TYPE_RUNNABLE
|
static int |
TYPE_START
|
static int |
TYPE_STOP
|
static int |
TYPE_UNKNOWN
|
| Fields inherited from class drcl.comp.ACATimer |
data |
| 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 drcl.comp.ACATimer |
duplicate, getTime |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TYPE_UNKNOWN
public static final int TYPE_START
public static final int TYPE_STOP
public static final int TYPE_RESUME
public static final int TYPE_RUNNABLE
public Port port
public Port returnPort
| Constructor Detail |
public Task()
| Method Detail |
public static Task createNotify(java.lang.Object target_)
public static Task createNotify(java.lang.Object target_,
double time_)
public static Task createStart(Component c_,
double time_)
public static Task createStop(Component c_,
double time_)
public static Task createResume(Component c_,
double time_)
public static Task createRunnable(java.lang.Runnable r_,
double time_)
public abstract void execute(WorkerThread thread_)
thread_.
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||