T - The type of events in the statechartpublic class IncrementVariableBy<T extends Event> extends VariableAssignment<T,java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_increment
The value to give to the variable
|
protected int |
m_maxValue
The maximum value the variable is allowed to take.
|
m_variableName| Constructor and Description |
|---|
IncrementVariableBy(java.lang.String var_name,
int increment) |
IncrementVariableBy(java.lang.String var_name,
int increment,
int max_value) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(T event,
Transition<T> transition,
Statechart<T> statechart)
Executes the action
|
java.lang.String |
toString() |
protected final int m_increment
protected final int m_maxValue
public IncrementVariableBy(java.lang.String var_name,
int increment)
public IncrementVariableBy(java.lang.String var_name,
int increment,
int max_value)
public void execute(T event, Transition<T> transition, Statechart<T> statechart) throws ActionException
Actionexecute in class Action<T extends Event>event - The event that fires the transition to which
this action is associatedtransition - The transition to which this action is associatedstatechart - The statechart this transition belongs toActionExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © Sylvain HallĂ©. All Rights Reserved.