Просмотр исходного кода

regenerated sources for java generator tests

Robert Rudi 8 лет назад
Родитель
Сommit
15bb7af38f
14 измененных файлов с 140 добавлено и 7 удалено
  1. 1 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/ITimer.java
  2. 1 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/ITimerCallback.java
  3. 6 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/childfirstorthogonalreactions/ChildFirstOrthogonalReactionsStatemachine.java
  4. 46 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/conditionalexpressions/ConditionalExpressionsStatemachine.java
  5. 8 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/conditionalexpressions/IConditionalExpressionsStatemachine.java
  6. 9 7
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/declarations/DeclarationsStatemachine.java
  7. 6 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/internaleventlifecycle/InternalEventLifeCycleStatemachine.java
  8. 13 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/operations/OperationsStatemachine.java
  9. 6 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/operationswithoutbraces/OperationsWithoutBracesStatemachine.java
  10. 6 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/parentfirstorthogonalreactions/ParentFirstOrthogonalReactionsStatemachine.java
  11. 8 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/runnabletest/RunnableTestStatemachine.java
  12. 10 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/statechartkeywords/StatechartKeywordsStatemachine.java
  13. 13 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/variadicfunctions/VariadicFunctionsStatemachine.java
  14. 7 0
      test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/wrappertest/WrapperTestStatemachine.java

+ 1 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/ITimer.java

@@ -1,3 +1,4 @@
+/* Generated by YAKINDU Statechart Tools code generator. */
 package org.yakindu.scr;
 
 /**

+ 1 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/ITimerCallback.java

@@ -1,3 +1,4 @@
+/* Generated by YAKINDU Statechart Tools code generator. */
 package org.yakindu.scr;
 
 /**

+ 6 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/childfirstorthogonalreactions/ChildFirstOrthogonalReactionsStatemachine.java

@@ -170,6 +170,11 @@ public class ChildFirstOrthogonalReactionsStatemachine implements IChildFirstOrt
 	
 	public void init() {
 		this.initialized = true;
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
 		for (int i = 0; i < 4; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -207,6 +212,7 @@ public class ChildFirstOrthogonalReactionsStatemachine implements IChildFirstOrt
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_ChildFirstOrthogonalReactions_r_default();
 		enterSequence_ChildFirstOrthogonalReactions_r2_default();
 	}

+ 46 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/conditionalexpressions/ConditionalExpressionsStatemachine.java

@@ -30,6 +30,26 @@ public class ConditionalExpressionsStatemachine implements IConditionalExpressio
 			this.boolVar = value;
 		}
 		
+		private String stringVar;
+		
+		public String getStringVar() {
+			return stringVar;
+		}
+		
+		public void setStringVar(String value) {
+			this.stringVar = value;
+		}
+		
+		private String stringCondition;
+		
+		public String getStringCondition() {
+			return stringCondition;
+		}
+		
+		public void setStringCondition(String value) {
+			this.stringCondition = value;
+		}
+		
 		protected void clearEvents() {
 			e = false;
 		}
@@ -49,12 +69,15 @@ public class ConditionalExpressionsStatemachine implements IConditionalExpressio
 	
 	private int nextStateIndex;
 	
+	
+	
 	public ConditionalExpressionsStatemachine() {
 		sCInterface = new SCInterfaceImpl();
 	}
 	
 	public void init() {
 		this.initialized = true;
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -63,6 +86,10 @@ public class ConditionalExpressionsStatemachine implements IConditionalExpressio
 		sCInterface.setCondition(sCInterface.boolVar ? 3 : 2);
 		
 		sCInterface.setBoolVar(true);
+		
+		sCInterface.setStringVar("");
+		
+		sCInterface.setStringCondition("");
 	}
 	
 	public void enter() {
@@ -70,6 +97,7 @@ public class ConditionalExpressionsStatemachine implements IConditionalExpressio
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_main_region_default();
 	}
 	
@@ -144,6 +172,22 @@ public class ConditionalExpressionsStatemachine implements IConditionalExpressio
 		sCInterface.setBoolVar(value);
 	}
 	
+	public String getStringVar() {
+		return sCInterface.getStringVar();
+	}
+	
+	public void setStringVar(String value) {
+		sCInterface.setStringVar(value);
+	}
+	
+	public String getStringCondition() {
+		return sCInterface.getStringCondition();
+	}
+	
+	public void setStringCondition(String value) {
+		sCInterface.setStringCondition(value);
+	}
+	
 	private boolean check_main_region_A_tr0_tr0() {
 		return (sCInterface.e) && (1==(sCInterface.getBoolVar() ? 1 : 0));
 	}
@@ -161,6 +205,8 @@ public class ConditionalExpressionsStatemachine implements IConditionalExpressio
 	/* Entry action for state 'B'. */
 	private void entryAction_main_region_B() {
 		sCInterface.setCondition(((sCInterface.condition==2) ? 1 : 2));
+		
+		sCInterface.setStringCondition(((sCInterface.condition==2) ? "True" : "False"));
 	}
 	
 	/* 'default' enter sequence for state A */

+ 8 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/conditionalexpressions/IConditionalExpressionsStatemachine.java

@@ -16,6 +16,14 @@ public interface IConditionalExpressionsStatemachine extends IStatemachine {
 		
 		public void setBoolVar(boolean value);
 		
+		public String getStringVar();
+		
+		public void setStringVar(String value);
+		
+		public String getStringCondition();
+		
+		public void setStringCondition(String value);
+		
 	}
 	
 	public SCInterface getSCInterface();

+ 9 - 7
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/declarations/DeclarationsStatemachine.java

@@ -318,24 +318,22 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 	
 	private int nextStateIndex;
 	
+	
+	
 	private boolean evInA;
 	
 	private boolean evInB;
 	
 	private boolean evInC;
-	
 	private boolean evInCValue;
 	
 	private boolean evInD;
-	
 	private long evInDValue;
 	
 	private boolean evInE;
-	
 	private double evInEValue;
 	
 	private boolean evInF;
-	
 	private String evInFValue;
 	
 	private boolean varInA;
@@ -395,6 +393,7 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 	
 	public void init() {
 		this.initialized = true;
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -408,7 +407,7 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 		
 		sCInterface.setVarD("myString");
 		
-		sCInterface.setVarE(16);
+		sCInterface.setVarE(0x10);
 		
 		sCIIfA.setVarA(false);
 		
@@ -418,7 +417,7 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 		
 		sCIIfA.setVarD("myString");
 		
-		sCIIfA.setVarE(16);
+		sCIIfA.setVarE(0x10);
 		
 		setVarInA(false);
 		
@@ -428,7 +427,7 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 		
 		setVarInD("myString");
 		
-		setVarInE(16);
+		setVarInE(0x10);
 	}
 	
 	public void enter() {
@@ -436,6 +435,7 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_main_region_default();
 	}
 	
@@ -507,10 +507,12 @@ public class DeclarationsStatemachine implements IDeclarationsStatemachine {
 		evInA = true;
 	}
 	
+	
 	private void raiseEvInB() {
 		evInB = true;
 	}
 	
+	
 	private void raiseEvInC(boolean value) {
 		evInCValue = value;
 		evInC = true;

+ 6 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/internaleventlifecycle/InternalEventLifeCycleStatemachine.java

@@ -38,6 +38,8 @@ public class InternalEventLifeCycleStatemachine implements IInternalEventLifeCyc
 	
 	private int nextStateIndex;
 	
+	
+	
 	private boolean i1;
 	
 	private boolean i2;
@@ -48,6 +50,7 @@ public class InternalEventLifeCycleStatemachine implements IInternalEventLifeCyc
 	
 	public void init() {
 		this.initialized = true;
+		
 		for (int i = 0; i < 2; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -60,6 +63,7 @@ public class InternalEventLifeCycleStatemachine implements IInternalEventLifeCyc
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_r1_default();
 		enterSequence_r2_default();
 	}
@@ -126,10 +130,12 @@ public class InternalEventLifeCycleStatemachine implements IInternalEventLifeCyc
 		i1 = true;
 	}
 	
+	
 	private void raiseI2() {
 		i2 = true;
 	}
 	
+	
 	public void raiseE() {
 		sCInterface.raiseE();
 	}

+ 13 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/operations/OperationsStatemachine.java

@@ -67,6 +67,18 @@ public class OperationsStatemachine implements IOperationsStatemachine {
 	
 	public void init() {
 		this.initialized = true;
+		if (this.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for internal must be set.");	
+		}
+		
+		if (this.sCIInterface1.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCIInterface1 must be set.");
+		}
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -80,6 +92,7 @@ public class OperationsStatemachine implements IOperationsStatemachine {
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_main_region_default();
 	}
 	

+ 6 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/operationswithoutbraces/OperationsWithoutBracesStatemachine.java

@@ -38,6 +38,11 @@ public class OperationsWithoutBracesStatemachine implements IOperationsWithoutBr
 	
 	public void init() {
 		this.initialized = true;
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
 		for (int i = 0; i < 2; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -50,6 +55,7 @@ public class OperationsWithoutBracesStatemachine implements IOperationsWithoutBr
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_main_region_default();
 		enterSequence_another_region_default();
 	}

+ 6 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/parentfirstorthogonalreactions/ParentFirstOrthogonalReactionsStatemachine.java

@@ -170,6 +170,11 @@ public class ParentFirstOrthogonalReactionsStatemachine implements IParentFirstO
 	
 	public void init() {
 		this.initialized = true;
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
 		for (int i = 0; i < 4; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -207,6 +212,7 @@ public class ParentFirstOrthogonalReactionsStatemachine implements IParentFirstO
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_ParentFirstOrthogonalReactions_r_default();
 		enterSequence_ParentFirstOrthogonalReactions_r2_default();
 	}

+ 8 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/runnabletest/RunnableTestStatemachine.java

@@ -124,6 +124,8 @@ public class RunnableTestStatemachine implements IRunnableTestStatemachine {
 	private ITimer timer;
 	
 	private final boolean[] timeEvents = new boolean[3];
+	
+	
 	public RunnableTestStatemachine() {
 		sCInterface = new SCInterfaceImpl();
 	}
@@ -133,6 +135,11 @@ public class RunnableTestStatemachine implements IRunnableTestStatemachine {
 		if (timer == null) {
 			throw new IllegalStateException("timer not set.");
 		}
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -155,6 +162,7 @@ public class RunnableTestStatemachine implements IRunnableTestStatemachine {
 		if (timer == null) {
 			throw new IllegalStateException("timer not set.");
 		}
+	
 		entryAction();
 		enterSequence_main_region_default();
 	}

+ 10 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/statechartkeywords/StatechartKeywordsStatemachine.java

@@ -120,6 +120,7 @@ public class StatechartKeywordsStatemachine implements IStatechartKeywordsStatem
 	private ITimer timer;
 	
 	private final boolean[] timeEvents = new boolean[1];
+	
 	private boolean operationCallbackEvent;
 	
 	private boolean listeners;
@@ -194,6 +195,14 @@ public class StatechartKeywordsStatemachine implements IStatechartKeywordsStatem
 		if (timer == null) {
 			throw new IllegalStateException("timer not set.");
 		}
+		if (this.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for internal must be set.");	
+		}
+		
+		if (this.sCIIf.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCIIf must be set.");
+		}
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -230,6 +239,7 @@ public class StatechartKeywordsStatemachine implements IStatechartKeywordsStatem
 		if (timer == null) {
 			throw new IllegalStateException("timer not set.");
 		}
+	
 		entryAction();
 		enterSequence_main_region_default();
 	}

+ 13 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/variadicfunctions/VariadicFunctionsStatemachine.java

@@ -46,6 +46,18 @@ public class VariadicFunctionsStatemachine implements IVariadicFunctionsStatemac
 	
 	public void init() {
 		this.initialized = true;
+		if (this.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for internal must be set.");	
+		}
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
+		if (this.sCIIF2.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCIIF2 must be set.");
+		}
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -58,6 +70,7 @@ public class VariadicFunctionsStatemachine implements IVariadicFunctionsStatemac
 			throw new IllegalStateException(
 					"The state machine needs to be initialized first by calling the init() function.");
 		}
+	
 		enterSequence_main_region_default();
 	}
 	

+ 7 - 0
test-plugins/org.yakindu.sct.generator.java.test/src-gen/org/yakindu/scr/wrappertest/WrapperTestStatemachine.java

@@ -95,6 +95,7 @@ public class WrapperTestStatemachine implements IWrapperTestStatemachine {
 	private ITimer timer;
 	
 	private final boolean[] timeEvents = new boolean[2];
+	
 	public WrapperTestStatemachine() {
 		sCInterface = new SCInterfaceImpl();
 	}
@@ -104,6 +105,11 @@ public class WrapperTestStatemachine implements IWrapperTestStatemachine {
 		if (timer == null) {
 			throw new IllegalStateException("timer not set.");
 		}
+		
+		if (this.sCInterface.operationCallback == null) {
+			throw new IllegalStateException("Operation callback for interface sCInterface must be set.");
+		}
+		
 		for (int i = 0; i < 1; i++) {
 			stateVector[i] = State.$NullState$;
 		}
@@ -124,6 +130,7 @@ public class WrapperTestStatemachine implements IWrapperTestStatemachine {
 		if (timer == null) {
 			throw new IllegalStateException("timer not set.");
 		}
+	
 		entryAction();
 		enterSequence_main_region_default();
 	}