public class TDLAction
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TDLAction.TDLActionComparator
A class that compares two TDL actions.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TDLAction(Time time,
int actionType,
java.lang.Object actor)
Create a new TDLGraphNode.
|
Modifier and Type | Method and Description |
---|---|
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() |
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
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.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.