DRCL J-Sim API

drcl.comp
Class TaskSend

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.comp.ACATimer
          extended bydrcl.comp.Task
              extended bydrcl.comp.TaskSend
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class TaskSend
extends Task

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

See Also:
Serialized Form

Field Summary
 
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
TaskSend(Port port_, java.lang.Object data_)
          Creates a task to be executed immediately.
TaskSend(Port port_, java.lang.Object data_, double time_)
          Creates a task to be executed at the specified time.
 
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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskSend

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


TaskSend

public TaskSend(Port port_,
                java.lang.Object data_,
                double time_)
Creates a task to be executed 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_.

Specified by:
execute in class Task

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~