ptolemy.domains.tdl.kernel
Class LetTask

java.lang.Object
  extended by ptolemy.domains.tdl.kernel.LetTask

public class LetTask
extends java.lang.Object

A TTTask (time triggered task) is an actor with an invocationPeriod and a logical execution time.

Since:
Ptolemy II 8.0
Version:
$Id: LetTask.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Patricia Derler

Field Summary
private  Actor _actor
          performs the task execution,
private  long _invocationPeriod
          The invocation period of a task specifies the amount of time that passes before the task needs to be executed again.
private  long _let
          The logical execution time is the logical time required by the task for execution.
private  long _offset
          the offset of the task specifies the time the task is first invoked.
 
Constructor Summary
LetTask(Actor actor, long let, long invocationPeriod, long start)
          Create a new LET task.
 
Method Summary
 Actor getActor()
          Return the actor representing the task.
 long getInvocationPeriod()
          Return the invocation period of the task.
 long getLet()
          Return the LET of the task.
 long getOffset()
          Return the offset of the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_invocationPeriod

private long _invocationPeriod
The invocation period of a task specifies the amount of time that passes before the task needs to be executed again.


_let

private long _let
The logical execution time is the logical time required by the task for execution. At the beginning of the logical execution time, input ports are updated and the task execution is started. At the end of the logical execution time, output ports of the task are updated.


_actor

private Actor _actor
performs the task execution,


_offset

private long _offset
the offset of the task specifies the time the task is first invoked. After this first invocation, the task is invoked periodically.

Constructor Detail

LetTask

public LetTask(Actor actor,
               long let,
               long invocationPeriod,
               long start)
Create a new LET task.

Parameters:
actor - The LET task.
let - The LET of the task.
invocationPeriod - The period of invocation of the task.
start - The start time of the task.
Method Detail

getInvocationPeriod

public long getInvocationPeriod()
Return the invocation period of the task.

Returns:
the incovationPeriod.

getLet

public long getLet()
Return the LET of the task.

Returns:
the LET.

getActor

public Actor getActor()
Return the actor representing the task.

Returns:
the task actor.

getOffset

public long getOffset()
Return the offset of the task.

Returns:
the offset.