DRCL JavaSim API

drcl.comp
Class TaskReceive

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

public class TaskReceive
extends Task

Defines the "receive" task.

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
TaskReceive(Port port_, java.lang.Object data_)
          Creates a task to be executed immediately.
TaskReceive(Port port_, java.lang.Object data_, double time_)
          Creates a prioritized task to be conducted at the specified time.
TaskReceive(Port port_, java.lang.Object data_, Port returnPort_)
          Creates a prioritized task to be conducted immediately, with a return port.
 
Method Summary
 void execute(WorkerThread thread_)
          Executes the task in thread_.
 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

TaskReceive

public TaskReceive(Port port_,
                   java.lang.Object data_)
Creates a task to be executed immediately.

TaskReceive

public TaskReceive(Port port_,
                   java.lang.Object data_,
                   Port returnPort_)
Creates a prioritized task to be conducted immediately, with a return port.

TaskReceive

public TaskReceive(Port port_,
                   java.lang.Object data_,
                   double time_)
Creates a prioritized task to be conducted at the specified time.
Method Detail

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 ~