DRCL JavaSim API

drcl.comp
Class TaskSpecial

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.comp.ACATimer
              |
              +--drcl.comp.Task
                    |
                    +--drcl.comp.TaskSpecial
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable

public class TaskSpecial
extends Task

Defines the "special" runtime task performed by a WorkerThread.

See Also:
Serialized Form

Fields inherited from class drcl.comp.Task
port, returnPort, TYPE_RESUME, TYPE_RUNNABLE, TYPE_START, TYPE_STOP, TYPE_UNKNOWN
 
Fields inherited from class drcl.comp.ACATimer
data
 
Constructor Summary
TaskSpecial(java.lang.Object data_, int type_, double time_)
          Creates a notify/runnable task to be executed at the specified time.
TaskSpecial(Port port_, int type_, double time_)
          Creates a start/stop/resume task to be executed at the specified time.
TaskSpecial(Port port_, java.lang.Object data_, int type_, double time_)
          Creates a notify/runnable task to be executed at the specified time.
 
Method Summary
 void execute(WorkerThread thread_)
          Executes the task in thread_.
static java.lang.String printType(int type_)
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.comp.Task
createNotify, createNotify, createResume, createRunnable, createStart, createStop
 
Methods inherited from class drcl.comp.ACATimer
duplicate, getTime
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskSpecial

public TaskSpecial(java.lang.Object data_,
                   int type_,
                   double time_)
Creates a notify/runnable task to be executed at the specified time.

TaskSpecial

public TaskSpecial(Port port_,
                   int type_,
                   double time_)
Creates a start/stop/resume task to be executed at the specified time.

TaskSpecial

public TaskSpecial(Port port_,
                   java.lang.Object data_,
                   int type_,
                   double time_)
Creates a notify/runnable task to be executed at the specified time.
Method Detail

printType

public static final java.lang.String printType(int type_)

toString

public final java.lang.String toString()
Overrides:
toString in class DrclObj

execute

public void execute(WorkerThread thread_)
Description copied from class: Task
Executes the task in thread_.
Overrides:
execute in class Task

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~