|
@@ -26,18 +26,24 @@ cached String functionName(Step step) :
|
|
|
(step.isEffect()) ? step.actionFunctionName() : (
|
|
|
(step.isReactionCheck()) ? step.checkFunctionName() : (
|
|
|
(step.isEntryAction()) ? step.entryActionFunctionName() : (
|
|
|
- (step.isExitAction()) ? step.exitActionFunctionName() :
|
|
|
- " !! unknown function type !!" )));
|
|
|
+ (step.isExitAction()) ? step.exitActionFunctionName() : (
|
|
|
+ (step.isEnterSequence()) ? step.enterSequenceFunctionName() : (
|
|
|
+ (step.isExitSequence()) ? step.exitSequenceFunctionName() :
|
|
|
+ " !! unknown function type !!" )))));
|
|
|
|
|
|
String actionFunctionName(Step this) : this.stName() + "_actions_" + this.reaction().state().simpleName + "_" + this.reaction().name;
|
|
|
String checkFunctionName(Step this) : this.stName() + "_condition_" + this.reaction().state().simpleName + "_" + this.reaction().name;
|
|
|
String entryActionFunctionName(Step this) : this.stName() + "_entryActions_" + this.state().simpleName;
|
|
|
String exitActionFunctionName(Step this) : this.stName() + "_exitActions_" + this.state().simpleName;
|
|
|
+String enterSequenceFunctionName(Step this) : this.stName() + "_enterSequence_" + this.state().simpleName;
|
|
|
+String exitSequenceFunctionName(Step this) : this.stName() + "_exitSequence_" + this.state().simpleName;
|
|
|
|
|
|
boolean isEffect(Step step) : (! Check.isInstance(step)) && Reaction.isInstance(step.eContainer) ;
|
|
|
boolean isReactionCheck(Step step) : Reaction.isInstance(step.eContainer) && Check.isInstance(step);
|
|
|
boolean isEntryAction(Step step) : ExecutionState.isInstance(step.eContainer) && step.state().entryAction == step;
|
|
|
boolean isExitAction(Step step) : ExecutionState.isInstance(step.eContainer) && step.state().exitAction == step;
|
|
|
+boolean isEnterSequence(Step step) : ExecutionState.isInstance(step.eContainer) && step.state().enterSequence == step;
|
|
|
+boolean isExitSequence(Step step) : ExecutionState.isInstance(step.eContainer) && step.state().exitSequence == step;
|
|
|
|
|
|
Reaction reaction(Step this) : (Reaction) this.eContainer ;
|
|
|
ExecutionState state(Reaction this) : (ExecutionState) eContainer;
|