|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.domains.tdl.kernel.TDLAction
public class TDLAction
A TDL action. Used in the TDLActionsGraph.
Nested Class Summary | |
---|---|
static class |
TDLAction.TDLActionComparator
A class that compares two TDL actions. |
Field Summary | |
---|---|
int |
actionType
Type of TDL action. |
static int |
AFTERMODESWITCH
If a mode switch is not taken, this is the next action. |
static int |
AFTERTASKOUTPUTS
The action after a task is output. |
static int |
EXECUTETASK
Execute a task. |
static int |
MODESWITCH
Test a mode switch guard and execute the mode switch if the guard evaluates to true. |
java.lang.Object |
object
Actor the TDL action has to be performed on. |
static int |
READINPUT
Read the input of a task. |
static int |
READSENSOR
Read a sensor value which is the input of a TDLModule. |
Time |
time
Time stamp for the TDL action. |
static int |
WRITEACTUATOR
Write actuator which is the output of a TDLModule. |
static int |
WRITEOUTPUT
Write output of a task. |
Constructor Summary | |
---|---|
TDLAction(Time time,
int actionType,
java.lang.Object actor)
Create a new TDLGraphNode. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
Return a hash code value for this action. |
boolean |
sameActionAs(TDLAction action,
Time modePeriod)
Return true if two actions are the same. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int WRITEOUTPUT
public static final int WRITEACTUATOR
public static final int MODESWITCH
public static final int AFTERMODESWITCH
public static final int READSENSOR
public static final int READINPUT
public static final int EXECUTETASK
public static final int AFTERTASKOUTPUTS
public Time time
public int actionType
public java.lang.Object object
Constructor Detail |
---|
public TDLAction(Time time, int actionType, java.lang.Object actor)
time
- Time stamp the TDL action has to be done at.actionType
- Type of TDL action.actor
- Actor on which the TDL action has to be performed on.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean sameActionAs(TDLAction action, Time modePeriod)
action
- The action to compare against this actionmodePeriod
- The mode period.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |