Andreas Mülder 13 лет назад
Родитель
Сommit
978a960f33
65 измененных файлов с 0 добавлено и 7343 удалено
  1. 0 9
      test-plugins/org.yakindu.sct.generator.java.runtime.test/.classpath
  2. 0 34
      test-plugins/org.yakindu.sct.generator.java.runtime.test/.project
  3. 0 12
      test-plugins/org.yakindu.sct.generator.java.runtime.test/.settings/org.eclipse.jdt.core.prefs
  4. 0 15
      test-plugins/org.yakindu.sct.generator.java.runtime.test/META-INF/MANIFEST.MF
  5. 0 4
      test-plugins/org.yakindu.sct.generator.java.runtime.test/build.properties
  6. 0 201
      test-plugins/org.yakindu.sct.generator.java.runtime.test/model/model.sgen
  7. 0 86
      test-plugins/org.yakindu.sct.generator.java.runtime.test/pom.xml
  8. 0 24
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/IStatemachine.java
  9. 0 30
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/ITimedStatemachine.java
  10. 0 38
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/ITimerService.java
  11. 0 77
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/RuntimeService.java
  12. 0 58
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/TimeEvent.java
  13. 0 57
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/TimerService.java
  14. 0 161
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/alwaysoncycle/AlwaysOncycleStatemachine.java
  15. 0 16
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/alwaysoncycle/IAlwaysOncycleStatemachine.java
  16. 0 289
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/bitexpressions/BitExpressionsStatemachine.java
  17. 0 32
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/bitexpressions/IBitExpressionsStatemachine.java
  18. 0 274
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/booleanexpressions/BooleanExpressionsStatemachine.java
  19. 0 30
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/booleanexpressions/IBooleanExpressionsStatemachine.java
  20. 0 203
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/choice/ChoiceStatemachine.java
  21. 0 18
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/choice/IChoiceStatemachine.java
  22. 0 839
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/deephistory/DeepHistoryStatemachine.java
  23. 0 31
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/deephistory/IDeepHistoryStatemachine.java
  24. 0 156
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/featurecalls/FeatureCallsStatemachine.java
  25. 0 18
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/featurecalls/IFeatureCallsStatemachine.java
  26. 0 160
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/guard/GuardStatemachine.java
  27. 0 7
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/guard/IGuardStatemachine.java
  28. 0 56
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/integerexpressions/IIntegerExpressionsStatemachine.java
  29. 0 524
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/integerexpressions/IntegerExpressionsStatemachine.java
  30. 0 17
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/priorityvalues/IPriorityValuesStatemachine.java
  31. 0 241
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/priorityvalues/PriorityValuesStatemachine.java
  32. 0 29
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/shallowhistory/IShallowHistoryStatemachine.java
  33. 0 769
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/shallowhistory/ShallowHistoryStatemachine.java
  34. 0 15
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simpleevent/ISimpleEventStatemachine.java
  35. 0 139
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simpleevent/SimpleEventStatemachine.java
  36. 0 15
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simplehierachy/ISimpleHierachyStatemachine.java
  37. 0 144
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simplehierachy/SimpleHierachyStatemachine.java
  38. 0 16
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/statechartlocalreactions/IStatechartLocalReactionsStatemachine.java
  39. 0 181
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/statechartlocalreactions/StatechartLocalReactionsStatemachine.java
  40. 0 15
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/stateisactive/IStateIsActiveStatemachine.java
  41. 0 176
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/stateisactive/StateIsActiveStatemachine.java
  42. 0 17
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncfork/ISyncForkStatemachine.java
  43. 0 296
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncfork/SyncForkStatemachine.java
  44. 0 21
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncjoin/ISyncJoinStatemachine.java
  45. 0 306
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncjoin/SyncJoinStatemachine.java
  46. 0 20
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/timetrigger/ITimeTriggerStatemachine.java
  47. 0 207
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/timetrigger/TimeTriggerStatemachine.java
  48. 0 17
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/valuedevents/IValuedEventsStatemachine.java
  49. 0 190
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/valuedevents/ValuedEventsStatemachine.java
  50. 0 55
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/AlwaysOncycleTest.java
  51. 0 70
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/ChoiceTest.java
  52. 0 63
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/DeepHistoryTest.java
  53. 0 43
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/GuardTest.java
  54. 0 54
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/PriorityValuesTest.java
  55. 0 81
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/ShallowHistoryTest.java
  56. 0 49
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SimpleEventTest.java
  57. 0 50
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SimpleHierachyTest.java
  58. 0 49
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/StateIsActiveTest.java
  59. 0 53
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/StatechartLocalReactionsTest.java
  60. 0 43
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SyncForkTest.java
  61. 0 105
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SyncJoinTest.java
  62. 0 46
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/ValuedEventsTest.java
  63. 0 169
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src/org/yakindu/sct/generator/java/JavaSCTGeneratorTest.java
  64. 0 93
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src/org/yakindu/sct/generator/java/util/AbstractJavaGeneratorTest.java
  65. 0 30
      test-plugins/org.yakindu.sct.generator.java.runtime.test/src/org/yakindu/sct/generator/java/util/JavaGeneratorInjectionProvider.java

+ 0 - 9
test-plugins/org.yakindu.sct.generator.java.runtime.test/.classpath

@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="src" path="src-gen"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>

+ 0 - 34
test-plugins/org.yakindu.sct.generator.java.runtime.test/.project

@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.yakindu.sct.generator.java.test</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
-		<nature>org.eclipse.pde.PluginNature</nature>
-	</natures>
-</projectDescription>

+ 0 - 12
test-plugins/org.yakindu.sct.generator.java.runtime.test/.settings/org.eclipse.jdt.core.prefs

@@ -1,12 +0,0 @@
-#Wed Nov 23 10:47:33 CET 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5

+ 0 - 15
test-plugins/org.yakindu.sct.generator.java.runtime.test/META-INF/MANIFEST.MF

@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Test
-Bundle-SymbolicName: org.yakindu.sct.generator.java.test
-Bundle-Version: 1.0.0.qualifier
-Require-Bundle: org.yakindu.sct.generator.java;bundle-version="1.0.0",
- org.junit;bundle-version="4.8.2",
- org.yakindu.sct.generator.core;bundle-version="1.0.0",
- com.google.inject;bundle-version="2.0.0",
- org.eclipse.xtext.junit4;bundle-version="2.0.1",
- org.yakindu.sct.generator.genmodel;bundle-version="1.0.0",
- org.eclipse.jdt.core;bundle-version="3.7.3",
- org.yakindu.sct.test.models;bundle-version="1.0.0",
- org.eclipse.ui;bundle-version="3.7.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5

+ 0 - 4
test-plugins/org.yakindu.sct.generator.java.runtime.test/build.properties

@@ -1,4 +0,0 @@
-source.. = src/,\
-           src-gen/
-bin.includes = META-INF/,\
-               .

+ 0 - 201
test-plugins/org.yakindu.sct.generator.java.runtime.test/model/model.sgen

@@ -1,201 +0,0 @@
-GeneratorModel for yakindu::java {
-	statechart AlwaysOncycle {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart Choice {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart DeepHistory {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart FeatureCalls {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart Guard {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart PriorityValues {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart ShallowHistory {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart SimpleEvent {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart SimpleHierachy {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart StateIsActive {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart StatechartLocalReactions {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart SyncFork {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart SyncJoin {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart TimeTrigger {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart ValuedEvents {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart BooleanExpressions {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart BitExpressions {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-	statechart IntegerExpressions {
-		feature Outlet {
-			targetProject = "org.yakindu.sct.generator.java.runtime.test"
-			targetFolder = "src-gen"
-		}
-
-		feature GeneralFeatures {
-			TimerService = true
-			RuntimeService = true
-		}
-	}
-
-}

+ 0 - 86
test-plugins/org.yakindu.sct.generator.java.runtime.test/pom.xml

@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
-	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<modelVersion>4.0.0</modelVersion>
-	<parent>
-		<groupId>org.yakindu.sct</groupId>
-		<artifactId>org.yakindu.sct.releng</artifactId>
-		<version>1.0.0-SNAPSHOT</version>
-		<relativePath>../org.yakindu.sct.releng/pom.xml</relativePath>
-	</parent>
-	<artifactId>org.yakindu.sct.generator.java.test</artifactId>
-	<groupId>org.yakindu.sct.plugins</groupId>
-	<packaging>eclipse-test-plugin</packaging>
-	
-	<profiles>
-		<profile>
-			<id>CI</id>
-			<!-- Test failures are collected by jenkins and evaluated for instable builds -->
-			<properties>
-				<testFailureIgnore>true</testFailureIgnore>
-			</properties>
-		</profile>
-		<profile>
-			<id>macosx</id>
-			<activation>
-				<os>
-					<family>mac</family>
-				</os>
-			</activation>
-			<properties>
-				<test.vmargs>-Xmx512m -XX:MaxPermSize=256m -XstartOnFirstThread</test.vmargs>
-			</properties>
-		</profile>
-		<profile>
-			<id>other-os</id>
-			<activation>
-				<os>
-					<family>!mac</family>
-				</os>
-			</activation>
-			<properties>
-				<test.vmargs>-Xmx512m -XX:MaxPermSize=256m</test.vmargs>
-			</properties>
-		</profile>
-	</profiles>
-	
-	<properties>
-		<testFailureIgnore>false</testFailureIgnore>
-	</properties>
-	
-	<build>
-		<sourceDirectory>src</sourceDirectory>
-		<plugins>
-			<plugin>
-				<groupId>org.eclipse.tycho</groupId>
-				<artifactId>tycho-surefire-plugin</artifactId>
-				<version>${tycho-version}</version>
-				<configuration>
-					<!-- 
-					<includes>
-						<include>**/All*Tests.class</include>
-					</includes>
-					 -->
-					<useUIHarness>false</useUIHarness>
-					<useUIThread>false</useUIThread>
-					<testFailureIgnore>${testFailureIgnore}</testFailureIgnore>
-					<argLine>${test.vmargs}</argLine>
-				</configuration>
-			</plugin>
-			<plugin>
-				<groupId>org.eclipse.tycho</groupId>
-				<artifactId>tycho-source-plugin</artifactId>
-				<version>${tycho-version}</version>
-				<executions>
-					<execution>
-						<id>plugin-source</id>
-						<goals>
-							<goal>plugin-source</goal>
-						</goals>
-					</execution>
-				</executions>
-			</plugin>
-		</plugins>
-	</build>
-</project>

+ 0 - 24
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/IStatemachine.java

@@ -1,24 +0,0 @@
-package org.yakindu.scr;
-
-/**
- * Basic interface for statemachines.
- * 
- * 
- */
-public interface IStatemachine {
-
-	/**
-	 * Initializes the statemachine. Use to init internal variables etc.
-	 */
-	public void init();
-
-	/**
-	 * Start a run-to-completion cycle.
-	 */
-	public void runCycle();
-
-	/**
-	 * Enters the statemachine. Sets the statemachine in a defined state.
-	 */
-	public void enter();
-}

+ 0 - 30
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/ITimedStatemachine.java

@@ -1,30 +0,0 @@
-package org.yakindu.scr;
-
-/**
- * Interface for state machines which use timed event triggers.
- */
-public interface ITimedStatemachine {
-
-	/**
-	 * Set the {@link ITimerService} for the state machine. It must be set
-	 * externally on a timed state machine before a run cycle can be correct
-	 * executed.
-	 * 
-	 * @param timerService
-	 */
-	public void setTimerService(ITimerService timerService);
-
-	/**
-	 * Returns the currently used timer service.
-	 * 
-	 * @return {@link ITimerService}
-	 */
-	public ITimerService getTimerService();
-
-	/**
-	 * Callback method if a {@link TimeEvent} occurred.
-	 * 
-	 * @param timeEvent
-	 */
-	public void onTimeEventRaised(TimeEvent timeEvent);
-}

+ 0 - 38
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/ITimerService.java

@@ -1,38 +0,0 @@
-package org.yakindu.scr;
-
-/**
- * Interface a timer service has to implement. Use to implement your own timer
- * service. A timer service has to be added to a timed state machine.
- * 
- */
-public interface ITimerService {
-
-	/**
-	 * Starts the timing for a given {@link TimeEvent}.
-	 * 
-	 * @param event
-	 *            : The TimeEvent the timer service should throw if timed out.
-	 * @param time
-	 *            : Time in milliseconds after the given time event should be
-	 *            triggered
-	 * @param cycleStartTime
-	 *            : The absolute start time in milliseconds at which the last
-	 *            run cycle was called. Can be used to produce a more accurate
-	 *            timing behavior.
-	 */
-	public void setTimer(TimeEvent event, long time, long cycleStartTime);
-
-	/**
-	 * Unset the given {@link TimeEvent}. Use to unset cyclic repeated time
-	 * events.
-	 * 
-	 * @param event
-	 */
-	public void resetTimer(TimeEvent event);
-
-	/**
-	 * Cancel timer service. Use this to end possible timing threads and free
-	 * memory resources.
-	 */
-	public void cancel();
-}

+ 0 - 77
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/RuntimeService.java

@@ -1,77 +0,0 @@
-package org.yakindu.scr;
-
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Timer;
-import java.util.TimerTask;
-import java.util.concurrent.locks.ReentrantReadWriteLock;
-
-/**
- * Runtime service for state machines to execute a run to completion step
- * periodically.
- * 
- */
-public class RuntimeService {
-
-	private Timer timer = new Timer();
-
-	private List<IStatemachine> statemachineSet = new LinkedList<IStatemachine>();
-
-	private ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
-
-	private TimerTask timerTask = new TimerTask() {
-
-		@Override
-		public void run() {
-			lock.readLock().lock();
-			for (IStatemachine statemachine : statemachineSet) {
-				statemachine.runCycle();
-			}
-			lock.readLock().unlock();
-		}
-	};
-
-	/**
-	 * Create runtime service.
-	 * 
-	 * @param cyclePeriod
-	 *            : The period with which the registered state machines run
-	 *            cycle method is called.
-	 */
-	public RuntimeService(long cyclePeriod) {
-		timer.scheduleAtFixedRate(timerTask, 0, cyclePeriod);
-	}
-
-	/**
-	 * Adds the given state machine to runtime service.
-	 * 
-	 * @param statemachine
-	 * @return {@code true} if state machine is added properly.
-	 */
-	public boolean addStatemachine(IStatemachine statemachine) {
-		lock.writeLock().lock();
-		boolean ret = statemachineSet.add(statemachine);
-		lock.writeLock().unlock();
-		return ret;
-	}
-
-	/**
-	 * Removes the given state machine from runtime service.
-	 * 
-	 * @param statemachine
-	 * @return {@code true} if state machine is removed properly.
-	 */
-	public boolean removeStatemachine(IStatemachine statemachine) {
-		lock.writeLock().lock();
-		boolean ret = statemachineSet.remove(statemachine);
-		lock.writeLock().unlock();
-		return ret;
-	}
-
-	/**
-	 * Ends the runtime service.
-	 */
-	public void cancel() {
-		timer.cancel();
-	}
-}

+ 0 - 58
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/TimeEvent.java

@@ -1,58 +0,0 @@
-package org.yakindu.scr;
-
-/**
- * Event that reflects a time event. It's internally used by
- * {@link ITimedStatemachine}.
- * 
- * @author muehlbrandt
- * 
- * @param <T>
- */
-public class TimeEvent {
-
-	private boolean periodic;
-
-	private ITimedStatemachine statemachine;
-
-	int index;
-
-	/**
-	 * Constructor for a time event.
-	 * 
-	 * @param periodic
-	 *            : Set to {@code true} if event should be repeated
-	 *            periodically.
-	 * 
-	 * @param index
-	 *            : Index position within the state machine's timeEvent array.
-	 */
-	public TimeEvent(boolean periodic, int index) {
-		this.periodic = periodic;
-		this.index = index;
-	}
-
-	/**
-	 * Returns the state machine reference of the event.
-	 * 
-	 */
-	public ITimedStatemachine getStatemachine() {
-		return statemachine;
-	}
-
-	/**
-	 * Sets the state machine reference of the event.
-	 * 
-	 * @param statemachine
-	 */
-	public void setStatemachine(ITimedStatemachine statemachine) {
-		this.statemachine = statemachine;
-	}
-
-	public boolean isPeriodic() {
-		return periodic;
-	}
-
-	public int getIndex() {
-		return index;
-	}
-}

+ 0 - 57
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/TimerService.java

@@ -1,57 +0,0 @@
-package org.yakindu.scr;
-
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Timer;
-import java.util.TimerTask;
-
-/**
- * Default timer service implementation.
- * 
- */
-public class TimerService implements ITimerService {
-
-	private final Timer timer = new Timer();
-
-	private final Map<TimeEvent, TimerTask> timerTaskMap = new HashMap<TimeEvent, TimerTask>();
-
-	public void setTimer(final TimeEvent event, long time, long cycleStartTime) {
-		// Reset existing TimerTask for event. This step isn't necessary if
-		// timer tasks are properly reset by sexec model.
-		if (timerTaskMap.containsKey(event)) {
-			resetTimer(event);
-		}
-
-		// Create a new TimerTask for given event.
-		timerTaskMap.put(event, new TimerTask() {
-			@Override
-			public void run() {
-				event.getStatemachine().onTimeEventRaised(event);
-			}
-		});
-
-		// start scheduling the timer
-		if (event.isPeriodic()) {
-			timer.scheduleAtFixedRate(timerTaskMap.get(event),
-					time - (System.currentTimeMillis() - cycleStartTime), time);
-		} else {
-			timer.schedule(timerTaskMap.get(event),
-					time - (System.currentTimeMillis() - cycleStartTime));
-		}
-	}
-
-	public void resetTimer(TimeEvent event) {
-		if (timerTaskMap.containsKey(event) && timerTaskMap.get(event) != null) {
-			timerTaskMap.get(event).cancel();
-			timer.purge();
-		}
-		timerTaskMap.remove(event);
-	}
-
-	/**
-	 * Cancels all running TimersTasks
-	 */
-	public void cancel() {
-		timer.cancel();
-	}
-}

+ 0 - 161
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/alwaysoncycle/AlwaysOncycleStatemachine.java

@@ -1,161 +0,0 @@
-package org.yakindu.scr.alwaysoncycle;
-
-public class AlwaysOncycleStatemachine implements IAlwaysOncycleStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private int value;
-
-		public int getValue() {
-			return value;
-		}
-
-		public void setValue(int value) {
-			this.value = value;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_StateA, Main_region_StateB, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public AlwaysOncycleStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public int getValue() {
-		return sCIDefault.getValue();
-	}
-
-	public void setValue(int value) {
-		sCIDefault.setValue(value);
-	}
-
-	public void enter() {
-		entryActionAlwaysOncycle();
-		sCIDefault.setValue(0);
-
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_StateA;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_StateA :
-				stateVector[0] = State.$NullState$;
-				sCIDefault.setValue(0);
-
-				break;
-
-			case Main_region_StateB :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionAlwaysOncycle();
-	}
-
-	private void entryActionAlwaysOncycle() {
-
-	}
-
-	private void exitActionAlwaysOncycle() {
-
-	}
-
-	private void reactMain_region_StateA() {
-		if ((sCIDefault.getValue() == 5)) {
-			stateVector[0] = State.$NullState$;
-			sCIDefault.setValue(0);
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_StateB;
-
-		} else {
-			sCIDefault.setValue(sCIDefault.getValue() + (1));
-
-		}
-
-	}
-	private void reactMain_region_StateB() {
-		if ((sCIDefault.getValue() == 5)) {
-			stateVector[0] = State.$NullState$;
-
-			sCIDefault.setValue(0);
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_StateA;
-
-		} else {
-			sCIDefault.setValue(sCIDefault.getValue() + (1));
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_StateA :
-					reactMain_region_StateA();
-					break;
-				case Main_region_StateB :
-					reactMain_region_StateB();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 16
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/alwaysoncycle/IAlwaysOncycleStatemachine.java

@@ -1,16 +0,0 @@
-package org.yakindu.scr.alwaysoncycle;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IAlwaysOncycleStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public int getValue();
-		public void setValue(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 289
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/bitexpressions/BitExpressionsStatemachine.java

@@ -1,289 +0,0 @@
-package org.yakindu.scr.bitexpressions;
-
-public class BitExpressionsStatemachine implements IBitExpressionsStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean e1;
-
-		public void raiseE1() {
-			e1 = true;
-		}
-
-		private int myBit1;
-
-		public int getMyBit1() {
-			return myBit1;
-		}
-
-		public void setMyBit1(int value) {
-			this.myBit1 = value;
-		}
-
-		private int myBit2;
-
-		public int getMyBit2() {
-			return myBit2;
-		}
-
-		public void setMyBit2(int value) {
-			this.myBit2 = value;
-		}
-
-		private int leftBitshift;
-
-		public int getLeftBitshift() {
-			return leftBitshift;
-		}
-
-		public void setLeftBitshift(int value) {
-			this.leftBitshift = value;
-		}
-
-		private int rightBitshift;
-
-		public int getRightBitshift() {
-			return rightBitshift;
-		}
-
-		public void setRightBitshift(int value) {
-			this.rightBitshift = value;
-		}
-
-		private int complementBitshift;
-
-		public int getComplementBitshift() {
-			return complementBitshift;
-		}
-
-		public void setComplementBitshift(int value) {
-			this.complementBitshift = value;
-		}
-
-		private int bitwiseAnd;
-
-		public int getBitwiseAnd() {
-			return bitwiseAnd;
-		}
-
-		public void setBitwiseAnd(int value) {
-			this.bitwiseAnd = value;
-		}
-
-		private int bitwiseOr;
-
-		public int getBitwiseOr() {
-			return bitwiseOr;
-		}
-
-		public void setBitwiseOr(int value) {
-			this.bitwiseOr = value;
-		}
-
-		private int bitwiseXor;
-
-		public int getBitwiseXor() {
-			return bitwiseXor;
-		}
-
-		public void setBitwiseXor(int value) {
-			this.bitwiseXor = value;
-		}
-
-		public void clearEvents() {
-			e1 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_StateA, Main_region_StateB, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public BitExpressionsStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseE1() {
-		sCIDefault.raiseE1();
-	}
-
-	public int getMyBit1() {
-		return sCIDefault.getMyBit1();
-	}
-
-	public void setMyBit1(int value) {
-		sCIDefault.setMyBit1(value);
-	}
-	public int getMyBit2() {
-		return sCIDefault.getMyBit2();
-	}
-
-	public void setMyBit2(int value) {
-		sCIDefault.setMyBit2(value);
-	}
-	public int getLeftBitshift() {
-		return sCIDefault.getLeftBitshift();
-	}
-
-	public void setLeftBitshift(int value) {
-		sCIDefault.setLeftBitshift(value);
-	}
-	public int getRightBitshift() {
-		return sCIDefault.getRightBitshift();
-	}
-
-	public void setRightBitshift(int value) {
-		sCIDefault.setRightBitshift(value);
-	}
-	public int getComplementBitshift() {
-		return sCIDefault.getComplementBitshift();
-	}
-
-	public void setComplementBitshift(int value) {
-		sCIDefault.setComplementBitshift(value);
-	}
-	public int getBitwiseAnd() {
-		return sCIDefault.getBitwiseAnd();
-	}
-
-	public void setBitwiseAnd(int value) {
-		sCIDefault.setBitwiseAnd(value);
-	}
-	public int getBitwiseOr() {
-		return sCIDefault.getBitwiseOr();
-	}
-
-	public void setBitwiseOr(int value) {
-		sCIDefault.setBitwiseOr(value);
-	}
-	public int getBitwiseXor() {
-		return sCIDefault.getBitwiseXor();
-	}
-
-	public void setBitwiseXor(int value) {
-		sCIDefault.setBitwiseXor(value);
-	}
-
-	public void enter() {
-		entryActionBitExpressions();
-		sCIDefault.setMyBit1(5);
-		sCIDefault.setMyBit2(7);
-
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_StateA;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_StateA :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_StateB :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionBitExpressions();
-	}
-
-	private void entryActionBitExpressions() {
-
-	}
-
-	private void exitActionBitExpressions() {
-
-	}
-
-	private void reactMain_region_StateA() {
-		if (sCIDefault.e1) {
-			stateVector[0] = State.$NullState$;
-
-			sCIDefault.setLeftBitshift((sCIDefault.getMyBit1() << 1));
-			sCIDefault.setRightBitshift((sCIDefault.getMyBit1() >> 1));
-			sCIDefault.setComplementBitshift(~(sCIDefault.getMyBit1()));
-			sCIDefault.setBitwiseAnd((sCIDefault.getMyBit1() & sCIDefault
-					.getMyBit2()));
-			sCIDefault.setBitwiseOr((sCIDefault.getMyBit1() | sCIDefault
-					.getMyBit2()));
-			sCIDefault.setBitwiseXor((sCIDefault.getMyBit1() ^ sCIDefault
-					.getMyBit2()));
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_StateB;
-
-		}
-
-	}
-	private void reactMain_region_StateB() {
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_StateA :
-					reactMain_region_StateA();
-					break;
-				case Main_region_StateB :
-					reactMain_region_StateB();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 32
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/bitexpressions/IBitExpressionsStatemachine.java

@@ -1,32 +0,0 @@
-package org.yakindu.scr.bitexpressions;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IBitExpressionsStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseE1();
-
-		public int getMyBit1();
-		public void setMyBit1(int value);
-		public int getMyBit2();
-		public void setMyBit2(int value);
-		public int getLeftBitshift();
-		public void setLeftBitshift(int value);
-		public int getRightBitshift();
-		public void setRightBitshift(int value);
-		public int getComplementBitshift();
-		public void setComplementBitshift(int value);
-		public int getBitwiseAnd();
-		public void setBitwiseAnd(int value);
-		public int getBitwiseOr();
-		public void setBitwiseOr(int value);
-		public int getBitwiseXor();
-		public void setBitwiseXor(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 274
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/booleanexpressions/BooleanExpressionsStatemachine.java

@@ -1,274 +0,0 @@
-package org.yakindu.scr.booleanexpressions;
-
-public class BooleanExpressionsStatemachine
-		implements
-			IBooleanExpressionsStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean e1;
-
-		public void raiseE1() {
-			e1 = true;
-		}
-
-		private boolean myBool1;
-
-		public boolean getMyBool1() {
-			return myBool1;
-		}
-
-		public void setMyBool1(boolean value) {
-			this.myBool1 = value;
-		}
-
-		private boolean myBool2;
-
-		public boolean getMyBool2() {
-			return myBool2;
-		}
-
-		public void setMyBool2(boolean value) {
-			this.myBool2 = value;
-		}
-
-		private boolean and;
-
-		public boolean getAnd() {
-			return and;
-		}
-
-		public void setAnd(boolean value) {
-			this.and = value;
-		}
-
-		private boolean or;
-
-		public boolean getOr() {
-			return or;
-		}
-
-		public void setOr(boolean value) {
-			this.or = value;
-		}
-
-		private boolean not;
-
-		public boolean getNot() {
-			return not;
-		}
-
-		public void setNot(boolean value) {
-			this.not = value;
-		}
-
-		private boolean equal;
-
-		public boolean getEqual() {
-			return equal;
-		}
-
-		public void setEqual(boolean value) {
-			this.equal = value;
-		}
-
-		private boolean notequal;
-
-		public boolean getNotequal() {
-			return notequal;
-		}
-
-		public void setNotequal(boolean value) {
-			this.notequal = value;
-		}
-
-		public void clearEvents() {
-			e1 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_StateA, Main_region_StateB, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public BooleanExpressionsStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseE1() {
-		sCIDefault.raiseE1();
-	}
-
-	public boolean getMyBool1() {
-		return sCIDefault.getMyBool1();
-	}
-
-	public void setMyBool1(boolean value) {
-		sCIDefault.setMyBool1(value);
-	}
-	public boolean getMyBool2() {
-		return sCIDefault.getMyBool2();
-	}
-
-	public void setMyBool2(boolean value) {
-		sCIDefault.setMyBool2(value);
-	}
-	public boolean getAnd() {
-		return sCIDefault.getAnd();
-	}
-
-	public void setAnd(boolean value) {
-		sCIDefault.setAnd(value);
-	}
-	public boolean getOr() {
-		return sCIDefault.getOr();
-	}
-
-	public void setOr(boolean value) {
-		sCIDefault.setOr(value);
-	}
-	public boolean getNot() {
-		return sCIDefault.getNot();
-	}
-
-	public void setNot(boolean value) {
-		sCIDefault.setNot(value);
-	}
-	public boolean getEqual() {
-		return sCIDefault.getEqual();
-	}
-
-	public void setEqual(boolean value) {
-		sCIDefault.setEqual(value);
-	}
-	public boolean getNotequal() {
-		return sCIDefault.getNotequal();
-	}
-
-	public void setNotequal(boolean value) {
-		sCIDefault.setNotequal(value);
-	}
-
-	public void enter() {
-		entryActionBooleanExpressions();
-		sCIDefault.setMyBool1(true);
-		sCIDefault.setMyBool2(false);
-
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_StateA;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_StateA :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_StateB :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionBooleanExpressions();
-	}
-
-	private void entryActionBooleanExpressions() {
-
-	}
-
-	private void exitActionBooleanExpressions() {
-
-	}
-
-	private void reactMain_region_StateA() {
-		if (sCIDefault.e1) {
-			stateVector[0] = State.$NullState$;
-
-			sCIDefault.setAnd((sCIDefault.getMyBool1() && sCIDefault
-					.getMyBool2()));
-			sCIDefault.setOr((sCIDefault.getMyBool1() || sCIDefault
-					.getMyBool2()));
-			sCIDefault.setNot(!sCIDefault.getMyBool1());
-			sCIDefault.setEqual((sCIDefault.getMyBool1() == sCIDefault
-					.getMyBool2()));
-			sCIDefault.setNotequal((sCIDefault.getMyBool1() != sCIDefault
-					.getMyBool2()));
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_StateB;
-
-		}
-
-	}
-	private void reactMain_region_StateB() {
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_StateA :
-					reactMain_region_StateA();
-					break;
-				case Main_region_StateB :
-					reactMain_region_StateB();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 30
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/booleanexpressions/IBooleanExpressionsStatemachine.java

@@ -1,30 +0,0 @@
-package org.yakindu.scr.booleanexpressions;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IBooleanExpressionsStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseE1();
-
-		public boolean getMyBool1();
-		public void setMyBool1(boolean value);
-		public boolean getMyBool2();
-		public void setMyBool2(boolean value);
-		public boolean getAnd();
-		public void setAnd(boolean value);
-		public boolean getOr();
-		public void setOr(boolean value);
-		public boolean getNot();
-		public void setNot(boolean value);
-		public boolean getEqual();
-		public void setEqual(boolean value);
-		public boolean getNotequal();
-		public void setNotequal(boolean value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 203
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/choice/ChoiceStatemachine.java

@@ -1,203 +0,0 @@
-package org.yakindu.scr.choice;
-
-public class ChoiceStatemachine implements IChoiceStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean pressKey;
-
-		public void raisePressKey() {
-			pressKey = true;
-		}
-
-		private int value = 4;
-
-		public int getValue() {
-			return value;
-		}
-
-		public void setValue(int value) {
-			this.value = value;
-		}
-
-		public void clearEvents() {
-			pressKey = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_A, Main_region_B, Main_region_C, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public ChoiceStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raisePressKey() {
-		sCIDefault.raisePressKey();
-	}
-
-	public int getValue() {
-		return sCIDefault.getValue();
-	}
-
-	public void setValue(int value) {
-		sCIDefault.setValue(value);
-	}
-
-	public void enter() {
-		sCIDefault.setValue(4);
-		entryActionChoice();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_C :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionChoice();
-	}
-
-	private void entryActionChoice() {
-
-	}
-
-	private void exitActionChoice() {
-
-	}
-
-	private void reactMain_region_A() {
-		if (sCIDefault.pressKey) {
-			stateVector[0] = State.$NullState$;
-
-			if (((sCIDefault.getValue() % 2) == 0)) {
-				sCIDefault.setValue(sCIDefault.getValue() - (1));
-
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_B;
-
-			} else {
-				sCIDefault.setValue(sCIDefault.getValue() - (1));
-
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_C;
-
-			}
-
-		}
-
-	}
-	private void reactMain_region_B() {
-		if (sCIDefault.pressKey) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_A;
-
-		}
-
-	}
-	private void reactMain_region_C() {
-		if (sCIDefault.pressKey) {
-			stateVector[0] = State.$NullState$;
-
-			if ((sCIDefault.getValue() == 2)) {
-				sCIDefault.setValue(sCIDefault.getValue() - (1));
-
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_B;
-
-			} else {
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_A;
-
-			}
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				case Main_region_C :
-					reactMain_region_C();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 18
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/choice/IChoiceStatemachine.java

@@ -1,18 +0,0 @@
-package org.yakindu.scr.choice;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IChoiceStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raisePressKey();
-
-		public int getValue();
-		public void setValue(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 839
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/deephistory/DeepHistoryStatemachine.java

@@ -1,839 +0,0 @@
-package org.yakindu.scr.deephistory;
-
-public class DeepHistoryStatemachine implements IDeepHistoryStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		private boolean event2;
-
-		public void raiseEvent2() {
-			event2 = true;
-		}
-
-		private boolean event3;
-
-		public void raiseEvent3() {
-			event3 = true;
-		}
-
-		private boolean event4;
-
-		public void raiseEvent4() {
-			event4 = true;
-		}
-
-		private boolean event5;
-
-		public void raiseEvent5() {
-			event5 = true;
-		}
-
-		private boolean event6;
-
-		public void raiseEvent6() {
-			event6 = true;
-		}
-
-		private boolean event7;
-
-		public void raiseEvent7() {
-			event7 = true;
-		}
-
-		private boolean event8;
-
-		public void raiseEvent8() {
-			event8 = true;
-		}
-
-		private boolean event9;
-
-		public void raiseEvent9() {
-			event9 = true;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-			event2 = false;
-			event3 = false;
-			event4 = false;
-			event5 = false;
-			event6 = false;
-			event7 = false;
-			event8 = false;
-			event9 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		MainRegion_State1, MainRegion_State2, MainRegion_State2__region0_a, MainRegion_State2__region0_State4, MainRegion_State2__region0_State4__region0_State6, MainRegion_State2__region0_State4__region0_State7, MainRegion_State2__region0_State4__region0_State7__region0_State8, MainRegion_State2__region0_State4__region0_State7__region0_State9, MainRegion_State2__region0_State5, $NullState$
-	};
-
-	private State[] historyVector = new State[3];
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public DeepHistoryStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		for (int i = 0; i < 3; i++) {
-			historyVector[i] = State.$NullState$;
-		}
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseEvent1() {
-		sCIDefault.raiseEvent1();
-	}
-
-	public void raiseEvent2() {
-		sCIDefault.raiseEvent2();
-	}
-
-	public void raiseEvent3() {
-		sCIDefault.raiseEvent3();
-	}
-
-	public void raiseEvent4() {
-		sCIDefault.raiseEvent4();
-	}
-
-	public void raiseEvent5() {
-		sCIDefault.raiseEvent5();
-	}
-
-	public void raiseEvent6() {
-		sCIDefault.raiseEvent6();
-	}
-
-	public void raiseEvent7() {
-		sCIDefault.raiseEvent7();
-	}
-
-	public void raiseEvent8() {
-		sCIDefault.raiseEvent8();
-	}
-
-	public void raiseEvent9() {
-		sCIDefault.raiseEvent9();
-	}
-
-	public void enter() {
-		entryActionDeepHistory();
-		nextStateIndex = 0;
-		stateVector[0] = State.MainRegion_State1;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of mainRegion) at position 0...
-		switch (stateVector[0]) {
-
-			case MainRegion_State1 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_a :
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State6 :
-
-				historyVector[1] = stateVector[0];
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-				historyVector[2] = stateVector[0];
-
-				historyVector[1] = stateVector[0];
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-				historyVector[2] = stateVector[0];
-
-				historyVector[1] = stateVector[0];
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State5 :
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionDeepHistory();
-	}
-
-	private void entryActionDeepHistory() {
-
-	}
-
-	private void exitActionDeepHistory() {
-
-	}
-
-	private void deepEnterSequenceMainRegion_State2Region0() {
-		//Handle deep history entry of null
-		switch (historyVector[0]) {
-
-			case MainRegion_State2__region0_a :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_a;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State6 :
-				deepEnterSequenceMainRegion_State2__region0_State4Region0();
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-				deepEnterSequenceMainRegion_State2__region0_State4Region0();
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-				deepEnterSequenceMainRegion_State2__region0_State4Region0();
-
-				break;
-
-			case MainRegion_State2__region0_State5 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-				break;
-
-			default :
-				break;
-		}
-	}
-
-	private void deepEnterSequenceMainRegion_State2__region0_State4Region0() {
-		//Handle deep history entry of null
-		switch (historyVector[1]) {
-
-			case MainRegion_State2__region0_State4__region0_State6 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-				deepEnterSequenceMainRegion_State2__region0_State4__region0_State7Region0();
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-				deepEnterSequenceMainRegion_State2__region0_State4__region0_State7Region0();
-
-				break;
-
-			default :
-				break;
-		}
-	}
-
-	private void deepEnterSequenceMainRegion_State2__region0_State4__region0_State7Region0() {
-		//Handle deep history entry of null
-		switch (historyVector[2]) {
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State8;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State9;
-
-				break;
-
-			default :
-				break;
-		}
-	}
-
-	private void reactMainRegion_State1() {
-		if (sCIDefault.event1) {
-			stateVector[0] = State.$NullState$;
-
-			//Enter the region with deep history
-			if (historyVector[0] != State.$NullState$) {
-				deepEnterSequenceMainRegion_State2Region0();
-			} else {
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_a;
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2() {
-	}
-	private void reactMainRegion_State2__region0_a() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_a :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (true) {
-				stateVector[0] = State.$NullState$;
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State4() {
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State6() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_a :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event4) {
-
-				historyVector[1] = stateVector[0];
-				//Handle exit of all possible states (of region0) at position 0...
-				switch (stateVector[0]) {
-
-					case MainRegion_State2__region0_State4__region0_State6 :
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-						historyVector[2] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-						historyVector[2] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					default :
-						break;
-				}
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-			} else {
-				if (sCIDefault.event5) {
-					stateVector[0] = State.$NullState$;
-
-					nextStateIndex = 0;
-					stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State8;
-
-				}
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State7() {
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State7__region0_State8() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_a :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event4) {
-
-				historyVector[1] = stateVector[0];
-				//Handle exit of all possible states (of region0) at position 0...
-				switch (stateVector[0]) {
-
-					case MainRegion_State2__region0_State4__region0_State6 :
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-						historyVector[2] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-						historyVector[2] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					default :
-						break;
-				}
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-			} else {
-				if (sCIDefault.event6) {
-
-					historyVector[2] = stateVector[0];
-					//Handle exit of all possible states (of region0) at position 0...
-					switch (stateVector[0]) {
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						default :
-							break;
-					}
-
-					nextStateIndex = 0;
-					stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				} else {
-					if (sCIDefault.event7) {
-						stateVector[0] = State.$NullState$;
-
-						nextStateIndex = 0;
-						stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State9;
-
-					}
-
-				}
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State7__region0_State9() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_a :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event4) {
-
-				historyVector[1] = stateVector[0];
-				//Handle exit of all possible states (of region0) at position 0...
-				switch (stateVector[0]) {
-
-					case MainRegion_State2__region0_State4__region0_State6 :
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-						historyVector[2] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-						historyVector[2] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					default :
-						break;
-				}
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-			} else {
-				if (sCIDefault.event6) {
-
-					historyVector[2] = stateVector[0];
-					//Handle exit of all possible states (of region0) at position 0...
-					switch (stateVector[0]) {
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						default :
-							break;
-					}
-
-					nextStateIndex = 0;
-					stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				} else {
-					if (sCIDefault.event8) {
-						stateVector[0] = State.$NullState$;
-
-						nextStateIndex = 0;
-						stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State8;
-
-					}
-
-				}
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State5() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_a :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[2] = stateVector[0];
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case MainRegion_State1 :
-					reactMainRegion_State1();
-					break;
-				case MainRegion_State2 :
-					reactMainRegion_State2();
-					break;
-				case MainRegion_State2__region0_a :
-					reactMainRegion_State2__region0_a();
-					break;
-				case MainRegion_State2__region0_State4 :
-					reactMainRegion_State2__region0_State4();
-					break;
-				case MainRegion_State2__region0_State4__region0_State6 :
-					reactMainRegion_State2__region0_State4__region0_State6();
-					break;
-				case MainRegion_State2__region0_State4__region0_State7 :
-					reactMainRegion_State2__region0_State4__region0_State7();
-					break;
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-					reactMainRegion_State2__region0_State4__region0_State7__region0_State8();
-					break;
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-					reactMainRegion_State2__region0_State4__region0_State7__region0_State9();
-					break;
-				case MainRegion_State2__region0_State5 :
-					reactMainRegion_State2__region0_State5();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 31
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/deephistory/IDeepHistoryStatemachine.java

@@ -1,31 +0,0 @@
-package org.yakindu.scr.deephistory;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IDeepHistoryStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseEvent1();
-
-		public void raiseEvent2();
-
-		public void raiseEvent3();
-
-		public void raiseEvent4();
-
-		public void raiseEvent5();
-
-		public void raiseEvent6();
-
-		public void raiseEvent7();
-
-		public void raiseEvent8();
-
-		public void raiseEvent9();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 156
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/featurecalls/FeatureCallsStatemachine.java

@@ -1,156 +0,0 @@
-package org.yakindu.scr.featurecalls;
-
-public class FeatureCallsStatemachine implements IFeatureCallsStatemachine {
-
-	private final class SCIMyInterfaceImpl implements SCIMyInterface {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		private int myInt;
-
-		public int getMyInt() {
-			return myInt;
-		}
-
-		public void setMyInt(int value) {
-			this.myInt = value;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-		}
-
-	}
-
-	private SCIMyInterfaceImpl sCIMyInterface;
-
-	public enum State {
-		Main_region_A, Main_region_B, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public FeatureCallsStatemachine() {
-
-		sCIMyInterface = new SCIMyInterfaceImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIMyInterface.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIMyInterface getSCIMyInterface() {
-		return sCIMyInterface;
-	}
-
-	public void enter() {
-		entryActionFeatureCalls();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionFeatureCalls();
-	}
-
-	private void entryActionFeatureCalls() {
-
-	}
-
-	private void exitActionFeatureCalls() {
-
-	}
-
-	private void reactMain_region_A() {
-		if (sCIMyInterface.event1) {
-			stateVector[0] = State.$NullState$;
-
-			sCIMyInterface.setMyInt(42);
-
-			sCIMyInterface.raiseEvent1();
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_B;
-
-		}
-
-	}
-	private void reactMain_region_B() {
-		if (sCIMyInterface.event1) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_A;
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 18
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/featurecalls/IFeatureCallsStatemachine.java

@@ -1,18 +0,0 @@
-package org.yakindu.scr.featurecalls;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IFeatureCallsStatemachine extends IStatemachine {
-
-	public interface SCIMyInterface {
-
-		public void raiseEvent1();
-
-		public int getMyInt();
-		public void setMyInt(int value);
-
-	}
-
-	public SCIMyInterface getSCIMyInterface();
-
-}

+ 0 - 160
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/guard/GuardStatemachine.java

@@ -1,160 +0,0 @@
-package org.yakindu.scr.guard;
-
-public class GuardStatemachine implements IGuardStatemachine {
-
-	private boolean event1;
-
-	private boolean event2;
-
-	private boolean eventReturn;
-
-	public enum State {
-		Main_region_A, Main_region_B, $NullState$
-	};
-
-	private int myVar = 0;
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public GuardStatemachine() {
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	private void raiseEvent1() {
-		event1 = true;
-	}
-
-	private void raiseEvent2() {
-		event2 = true;
-	}
-
-	private void raiseEventReturn() {
-		eventReturn = true;
-	}
-
-	private int getMyVar() {
-		return myVar;
-	}
-
-	private void setMyVar(int value) {
-		myVar = value;
-	}
-
-	public void enter() {
-		setMyVar(0);
-		entryActionGuard();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionGuard();
-	}
-
-	private void entryActionGuard() {
-
-	}
-
-	private void exitActionGuard() {
-
-	}
-
-	private void reactMain_region_A() {
-		if ((event1 && (getMyVar() == 10))) {
-			stateVector[0] = State.$NullState$;
-
-			setMyVar(10);
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_B;
-
-		} else {
-			if (event2) {
-				stateVector[0] = State.$NullState$;
-
-				setMyVar(10);
-
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_B;
-
-			}
-		}
-
-	}
-	private void reactMain_region_B() {
-		if (eventReturn) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_A;
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 7
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/guard/IGuardStatemachine.java

@@ -1,7 +0,0 @@
-package org.yakindu.scr.guard;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IGuardStatemachine extends IStatemachine {
-
-}

+ 0 - 56
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/integerexpressions/IIntegerExpressionsStatemachine.java

@@ -1,56 +0,0 @@
-package org.yakindu.scr.integerexpressions;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IIntegerExpressionsStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseE1();
-
-		public int getMyInt1();
-		public void setMyInt1(int value);
-		public int getMyInt2();
-		public void setMyInt2(int value);
-		public boolean getLess();
-		public void setLess(boolean value);
-		public boolean getGreater();
-		public void setGreater(boolean value);
-		public boolean getEqualOrLess();
-		public void setEqualOrLess(boolean value);
-		public boolean getEqualOrGreater();
-		public void setEqualOrGreater(boolean value);
-		public boolean getEqual();
-		public void setEqual(boolean value);
-		public boolean getNotEqual();
-		public void setNotEqual(boolean value);
-		public int getPlus();
-		public void setPlus(int value);
-		public int getMinus();
-		public void setMinus(int value);
-		public int getMultiply();
-		public void setMultiply(int value);
-		public int getDivision();
-		public void setDivision(int value);
-		public int getModulo();
-		public void setModulo(int value);
-		public int getNegat();
-		public void setNegat(int value);
-		public boolean getComplement();
-		public void setComplement(boolean value);
-		public int getMultiAssign();
-		public void setMultiAssign(int value);
-		public int getDivAssign();
-		public void setDivAssign(int value);
-		public int getPlusAssign();
-		public void setPlusAssign(int value);
-		public int getMinusAssign();
-		public void setMinusAssign(int value);
-		public int getModuloAssign();
-		public void setModuloAssign(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 524
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/integerexpressions/IntegerExpressionsStatemachine.java

@@ -1,524 +0,0 @@
-package org.yakindu.scr.integerexpressions;
-
-public class IntegerExpressionsStatemachine
-		implements
-			IIntegerExpressionsStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean e1;
-
-		public void raiseE1() {
-			e1 = true;
-		}
-
-		private int myInt1;
-
-		public int getMyInt1() {
-			return myInt1;
-		}
-
-		public void setMyInt1(int value) {
-			this.myInt1 = value;
-		}
-
-		private int myInt2;
-
-		public int getMyInt2() {
-			return myInt2;
-		}
-
-		public void setMyInt2(int value) {
-			this.myInt2 = value;
-		}
-
-		private boolean less;
-
-		public boolean getLess() {
-			return less;
-		}
-
-		public void setLess(boolean value) {
-			this.less = value;
-		}
-
-		private boolean greater;
-
-		public boolean getGreater() {
-			return greater;
-		}
-
-		public void setGreater(boolean value) {
-			this.greater = value;
-		}
-
-		private boolean equalOrLess;
-
-		public boolean getEqualOrLess() {
-			return equalOrLess;
-		}
-
-		public void setEqualOrLess(boolean value) {
-			this.equalOrLess = value;
-		}
-
-		private boolean equalOrGreater;
-
-		public boolean getEqualOrGreater() {
-			return equalOrGreater;
-		}
-
-		public void setEqualOrGreater(boolean value) {
-			this.equalOrGreater = value;
-		}
-
-		private boolean equal;
-
-		public boolean getEqual() {
-			return equal;
-		}
-
-		public void setEqual(boolean value) {
-			this.equal = value;
-		}
-
-		private boolean notEqual;
-
-		public boolean getNotEqual() {
-			return notEqual;
-		}
-
-		public void setNotEqual(boolean value) {
-			this.notEqual = value;
-		}
-
-		private int plus;
-
-		public int getPlus() {
-			return plus;
-		}
-
-		public void setPlus(int value) {
-			this.plus = value;
-		}
-
-		private int minus;
-
-		public int getMinus() {
-			return minus;
-		}
-
-		public void setMinus(int value) {
-			this.minus = value;
-		}
-
-		private int multiply;
-
-		public int getMultiply() {
-			return multiply;
-		}
-
-		public void setMultiply(int value) {
-			this.multiply = value;
-		}
-
-		private int division;
-
-		public int getDivision() {
-			return division;
-		}
-
-		public void setDivision(int value) {
-			this.division = value;
-		}
-
-		private int modulo;
-
-		public int getModulo() {
-			return modulo;
-		}
-
-		public void setModulo(int value) {
-			this.modulo = value;
-		}
-
-		private int negat;
-
-		public int getNegat() {
-			return negat;
-		}
-
-		public void setNegat(int value) {
-			this.negat = value;
-		}
-
-		private boolean complement;
-
-		public boolean getComplement() {
-			return complement;
-		}
-
-		public void setComplement(boolean value) {
-			this.complement = value;
-		}
-
-		private int multiAssign = 2;
-
-		public int getMultiAssign() {
-			return multiAssign;
-		}
-
-		public void setMultiAssign(int value) {
-			this.multiAssign = value;
-		}
-
-		private int divAssign = 20;
-
-		public int getDivAssign() {
-			return divAssign;
-		}
-
-		public void setDivAssign(int value) {
-			this.divAssign = value;
-		}
-
-		private int plusAssign = 2;
-
-		public int getPlusAssign() {
-			return plusAssign;
-		}
-
-		public void setPlusAssign(int value) {
-			this.plusAssign = value;
-		}
-
-		private int minusAssign = 2;
-
-		public int getMinusAssign() {
-			return minusAssign;
-		}
-
-		public void setMinusAssign(int value) {
-			this.minusAssign = value;
-		}
-
-		private int moduloAssign = 20;
-
-		public int getModuloAssign() {
-			return moduloAssign;
-		}
-
-		public void setModuloAssign(int value) {
-			this.moduloAssign = value;
-		}
-
-		public void clearEvents() {
-			e1 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_StateA, Main_region_StateB, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public IntegerExpressionsStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseE1() {
-		sCIDefault.raiseE1();
-	}
-
-	public int getMyInt1() {
-		return sCIDefault.getMyInt1();
-	}
-
-	public void setMyInt1(int value) {
-		sCIDefault.setMyInt1(value);
-	}
-	public int getMyInt2() {
-		return sCIDefault.getMyInt2();
-	}
-
-	public void setMyInt2(int value) {
-		sCIDefault.setMyInt2(value);
-	}
-	public boolean getLess() {
-		return sCIDefault.getLess();
-	}
-
-	public void setLess(boolean value) {
-		sCIDefault.setLess(value);
-	}
-	public boolean getGreater() {
-		return sCIDefault.getGreater();
-	}
-
-	public void setGreater(boolean value) {
-		sCIDefault.setGreater(value);
-	}
-	public boolean getEqualOrLess() {
-		return sCIDefault.getEqualOrLess();
-	}
-
-	public void setEqualOrLess(boolean value) {
-		sCIDefault.setEqualOrLess(value);
-	}
-	public boolean getEqualOrGreater() {
-		return sCIDefault.getEqualOrGreater();
-	}
-
-	public void setEqualOrGreater(boolean value) {
-		sCIDefault.setEqualOrGreater(value);
-	}
-	public boolean getEqual() {
-		return sCIDefault.getEqual();
-	}
-
-	public void setEqual(boolean value) {
-		sCIDefault.setEqual(value);
-	}
-	public boolean getNotEqual() {
-		return sCIDefault.getNotEqual();
-	}
-
-	public void setNotEqual(boolean value) {
-		sCIDefault.setNotEqual(value);
-	}
-	public int getPlus() {
-		return sCIDefault.getPlus();
-	}
-
-	public void setPlus(int value) {
-		sCIDefault.setPlus(value);
-	}
-	public int getMinus() {
-		return sCIDefault.getMinus();
-	}
-
-	public void setMinus(int value) {
-		sCIDefault.setMinus(value);
-	}
-	public int getMultiply() {
-		return sCIDefault.getMultiply();
-	}
-
-	public void setMultiply(int value) {
-		sCIDefault.setMultiply(value);
-	}
-	public int getDivision() {
-		return sCIDefault.getDivision();
-	}
-
-	public void setDivision(int value) {
-		sCIDefault.setDivision(value);
-	}
-	public int getModulo() {
-		return sCIDefault.getModulo();
-	}
-
-	public void setModulo(int value) {
-		sCIDefault.setModulo(value);
-	}
-	public int getNegat() {
-		return sCIDefault.getNegat();
-	}
-
-	public void setNegat(int value) {
-		sCIDefault.setNegat(value);
-	}
-	public boolean getComplement() {
-		return sCIDefault.getComplement();
-	}
-
-	public void setComplement(boolean value) {
-		sCIDefault.setComplement(value);
-	}
-	public int getMultiAssign() {
-		return sCIDefault.getMultiAssign();
-	}
-
-	public void setMultiAssign(int value) {
-		sCIDefault.setMultiAssign(value);
-	}
-	public int getDivAssign() {
-		return sCIDefault.getDivAssign();
-	}
-
-	public void setDivAssign(int value) {
-		sCIDefault.setDivAssign(value);
-	}
-	public int getPlusAssign() {
-		return sCIDefault.getPlusAssign();
-	}
-
-	public void setPlusAssign(int value) {
-		sCIDefault.setPlusAssign(value);
-	}
-	public int getMinusAssign() {
-		return sCIDefault.getMinusAssign();
-	}
-
-	public void setMinusAssign(int value) {
-		sCIDefault.setMinusAssign(value);
-	}
-	public int getModuloAssign() {
-		return sCIDefault.getModuloAssign();
-	}
-
-	public void setModuloAssign(int value) {
-		sCIDefault.setModuloAssign(value);
-	}
-
-	public void enter() {
-		sCIDefault.setMultiAssign(2);
-		sCIDefault.setDivAssign(20);
-		sCIDefault.setPlusAssign(2);
-		sCIDefault.setMinusAssign(2);
-		sCIDefault.setModuloAssign(20);
-		entryActionIntegerExpressions();
-		sCIDefault.setMyInt1(10);
-		sCIDefault.setMyInt2(5);
-
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_StateA;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_StateA :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_StateB :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionIntegerExpressions();
-	}
-
-	private void entryActionIntegerExpressions() {
-
-	}
-
-	private void exitActionIntegerExpressions() {
-
-	}
-
-	private void reactMain_region_StateA() {
-		if (sCIDefault.e1) {
-			stateVector[0] = State.$NullState$;
-
-			sCIDefault
-					.setLess((sCIDefault.getMyInt1() < sCIDefault.getMyInt2()));
-			sCIDefault.setGreater((sCIDefault.getMyInt1() > sCIDefault
-					.getMyInt2()));
-			sCIDefault.setEqualOrLess((sCIDefault.getMyInt1() <= sCIDefault
-					.getMyInt2()));
-			sCIDefault.setEqualOrGreater((sCIDefault.getMyInt1() >= sCIDefault
-					.getMyInt2()));
-			sCIDefault.setEqual((sCIDefault.getMyInt1() == sCIDefault
-					.getMyInt2()));
-			sCIDefault.setNotEqual((sCIDefault.getMyInt1() != sCIDefault
-					.getMyInt2()));
-			sCIDefault
-					.setPlus((sCIDefault.getMyInt1() + sCIDefault.getMyInt2()));
-			sCIDefault.setMinus((sCIDefault.getMyInt1() - sCIDefault
-					.getMyInt2()));
-			sCIDefault.setMultiply((sCIDefault.getMyInt1() * sCIDefault
-					.getMyInt2()));
-			sCIDefault.setDivision((sCIDefault.getMyInt1() / sCIDefault
-					.getMyInt2()));
-			sCIDefault.setModulo((sCIDefault.getMyInt1() % sCIDefault
-					.getMyInt2()));
-			sCIDefault.setNegat(-(sCIDefault.getMyInt1()));
-			sCIDefault.setMultiAssign(sCIDefault.getMultiAssign()
-					* (sCIDefault.getMyInt1()));
-			sCIDefault.setDivAssign(sCIDefault.getDivAssign()
-					/ (sCIDefault.getMyInt1()));
-			sCIDefault.setPlusAssign(sCIDefault.getPlusAssign()
-					+ (sCIDefault.getMyInt1()));
-			sCIDefault.setMinusAssign(sCIDefault.getMinusAssign()
-					- (sCIDefault.getMyInt1()));
-			sCIDefault.setModuloAssign(sCIDefault.getModuloAssign()
-					% (sCIDefault.getMyInt1()));
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_StateB;
-
-		}
-
-	}
-	private void reactMain_region_StateB() {
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_StateA :
-					reactMain_region_StateA();
-					break;
-				case Main_region_StateB :
-					reactMain_region_StateB();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 17
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/priorityvalues/IPriorityValuesStatemachine.java

@@ -1,17 +0,0 @@
-package org.yakindu.scr.priorityvalues;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IPriorityValuesStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseEvent1();
-
-		public void raiseEvent2();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 241
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/priorityvalues/PriorityValuesStatemachine.java

@@ -1,241 +0,0 @@
-package org.yakindu.scr.priorityvalues;
-
-public class PriorityValuesStatemachine implements IPriorityValuesStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		private boolean event2;
-
-		public void raiseEvent2() {
-			event2 = true;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-			event2 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		SomeRegion_A, SomeRegion_B, Main_region_A, Main_region_B, Main_region_C, Main_region_D, Main_region_E, $NullState$
-	};
-
-	private final State[] stateVector = new State[2];
-
-	private int nextStateIndex;
-
-	public PriorityValuesStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 2; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseEvent1() {
-		sCIDefault.raiseEvent1();
-	}
-
-	public void raiseEvent2() {
-		sCIDefault.raiseEvent2();
-	}
-
-	public void enter() {
-		entryActionPriorityValues();
-		nextStateIndex = 0;
-		stateVector[0] = State.SomeRegion_A;
-
-		nextStateIndex = 1;
-		stateVector[1] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of someRegion) at position 0...
-		switch (stateVector[0]) {
-
-			case SomeRegion_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case SomeRegion_B :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		//Handle exit of all possible states (of main region) at position 1...
-		switch (stateVector[1]) {
-
-			case Main_region_A :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case Main_region_B :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case Main_region_C :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case Main_region_D :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case Main_region_E :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionPriorityValues();
-	}
-
-	private void entryActionPriorityValues() {
-
-	}
-
-	private void exitActionPriorityValues() {
-
-	}
-
-	private void reactSomeRegion_A() {
-		if (sCIDefault.event2) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.SomeRegion_B;
-
-		}
-
-	}
-	private void reactSomeRegion_B() {
-
-	}
-	private void reactMain_region_A() {
-		if (sCIDefault.event1) {
-			stateVector[1] = State.$NullState$;
-
-			nextStateIndex = 1;
-			stateVector[1] = State.Main_region_C;
-
-		} else {
-			if (sCIDefault.event1) {
-				stateVector[1] = State.$NullState$;
-
-				nextStateIndex = 1;
-				stateVector[1] = State.Main_region_B;
-
-			} else {
-				if (sCIDefault.event1) {
-					stateVector[1] = State.$NullState$;
-
-					nextStateIndex = 1;
-					stateVector[1] = State.Main_region_D;
-
-				} else {
-					if ((sCIDefault.event2 && !isStateActive(State.SomeRegion_B))) {
-						stateVector[1] = State.$NullState$;
-
-						nextStateIndex = 1;
-						stateVector[1] = State.Main_region_E;
-
-					}
-				}
-			}
-		}
-	}
-	private void reactMain_region_B() {
-	}
-	private void reactMain_region_C() {
-	}
-	private void reactMain_region_D() {
-	}
-	private void reactMain_region_E() {
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case SomeRegion_A :
-					reactSomeRegion_A();
-					break;
-				case SomeRegion_B :
-					reactSomeRegion_B();
-					break;
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				case Main_region_C :
-					reactMain_region_C();
-					break;
-				case Main_region_D :
-					reactMain_region_D();
-					break;
-				case Main_region_E :
-					reactMain_region_E();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 29
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/shallowhistory/IShallowHistoryStatemachine.java

@@ -1,29 +0,0 @@
-package org.yakindu.scr.shallowhistory;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IShallowHistoryStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseEvent1();
-
-		public void raiseEvent2();
-
-		public void raiseEvent3();
-
-		public void raiseEvent4();
-
-		public void raiseEvent5();
-
-		public void raiseEvent6();
-
-		public void raiseEvent7();
-
-		public void raiseEvent8();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 769
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/shallowhistory/ShallowHistoryStatemachine.java

@@ -1,769 +0,0 @@
-package org.yakindu.scr.shallowhistory;
-
-public class ShallowHistoryStatemachine implements IShallowHistoryStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		private boolean event2;
-
-		public void raiseEvent2() {
-			event2 = true;
-		}
-
-		private boolean event3;
-
-		public void raiseEvent3() {
-			event3 = true;
-		}
-
-		private boolean event4;
-
-		public void raiseEvent4() {
-			event4 = true;
-		}
-
-		private boolean event5;
-
-		public void raiseEvent5() {
-			event5 = true;
-		}
-
-		private boolean event6;
-
-		public void raiseEvent6() {
-			event6 = true;
-		}
-
-		private boolean event7;
-
-		public void raiseEvent7() {
-			event7 = true;
-		}
-
-		private boolean event8;
-
-		public void raiseEvent8() {
-			event8 = true;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-			event2 = false;
-			event3 = false;
-			event4 = false;
-			event5 = false;
-			event6 = false;
-			event7 = false;
-			event8 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		MainRegion_State1, MainRegion_State2, MainRegion_State2__region0_State3, MainRegion_State2__region0_State4, MainRegion_State2__region0_State4__region0_State6, MainRegion_State2__region0_State4__region0_State7, MainRegion_State2__region0_State4__region0_State7__region0_State8, MainRegion_State2__region0_State4__region0_State7__region0_State9, MainRegion_State2__region0_State5, $NullState$
-	};
-
-	private State[] historyVector = new State[2];
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public ShallowHistoryStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		for (int i = 0; i < 2; i++) {
-			historyVector[i] = State.$NullState$;
-		}
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseEvent1() {
-		sCIDefault.raiseEvent1();
-	}
-
-	public void raiseEvent2() {
-		sCIDefault.raiseEvent2();
-	}
-
-	public void raiseEvent3() {
-		sCIDefault.raiseEvent3();
-	}
-
-	public void raiseEvent4() {
-		sCIDefault.raiseEvent4();
-	}
-
-	public void raiseEvent5() {
-		sCIDefault.raiseEvent5();
-	}
-
-	public void raiseEvent6() {
-		sCIDefault.raiseEvent6();
-	}
-
-	public void raiseEvent7() {
-		sCIDefault.raiseEvent7();
-	}
-
-	public void raiseEvent8() {
-		sCIDefault.raiseEvent8();
-	}
-
-	public void enter() {
-		entryActionShallowHistory();
-		nextStateIndex = 0;
-		stateVector[0] = State.MainRegion_State1;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of mainRegion) at position 0...
-		switch (stateVector[0]) {
-
-			case MainRegion_State1 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State3 :
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State6 :
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-				historyVector[1] = stateVector[0];
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-				historyVector[1] = stateVector[0];
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case MainRegion_State2__region0_State5 :
-
-				historyVector[0] = stateVector[0];
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionShallowHistory();
-	}
-
-	private void entryActionShallowHistory() {
-
-	}
-
-	private void exitActionShallowHistory() {
-
-	}
-
-	private void shallowEnterSequenceMainRegion_State2Region0() {
-		//Handle shallow history entry of null
-		switch (historyVector[0]) {
-
-			case MainRegion_State2__region0_State3 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State3;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State6 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				break;
-
-			case MainRegion_State2__region0_State5 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-				break;
-
-			default :
-				break;
-		}
-	}
-
-	private void shallowEnterSequenceMainRegion_State2__region0_State4__region0_State7Region0() {
-		//Handle shallow history entry of null
-		switch (historyVector[1]) {
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State8;
-
-				break;
-
-			case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State9;
-
-				break;
-
-			default :
-				break;
-		}
-	}
-	private void reactMainRegion_State1() {
-		if (sCIDefault.event1) {
-			stateVector[0] = State.$NullState$;
-
-			//Enter the region with shallow history
-			if (historyVector[0] != State.$NullState$) {
-				shallowEnterSequenceMainRegion_State2Region0();
-			} else {
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State3;
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2() {
-	}
-	private void reactMainRegion_State2__region0_State3() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_State3 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event3) {
-				stateVector[0] = State.$NullState$;
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State4() {
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State6() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_State3 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event4) {
-				//Handle exit of all possible states (of region0) at position 0...
-				switch (stateVector[0]) {
-
-					case MainRegion_State2__region0_State4__region0_State6 :
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-						historyVector[1] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-						historyVector[1] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					default :
-						break;
-				}
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-			} else {
-				if (sCIDefault.event5) {
-					stateVector[0] = State.$NullState$;
-
-					//Enter the region with shallow history
-					if (historyVector[1] != State.$NullState$) {
-						shallowEnterSequenceMainRegion_State2__region0_State4__region0_State7Region0();
-					} else {
-						nextStateIndex = 0;
-						stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State8;
-
-					}
-
-				}
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State7() {
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State7__region0_State8() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_State3 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event4) {
-				//Handle exit of all possible states (of region0) at position 0...
-				switch (stateVector[0]) {
-
-					case MainRegion_State2__region0_State4__region0_State6 :
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-						historyVector[1] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-						historyVector[1] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					default :
-						break;
-				}
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-			} else {
-				if (sCIDefault.event6) {
-
-					historyVector[1] = stateVector[0];
-					//Handle exit of all possible states (of region0) at position 0...
-					switch (stateVector[0]) {
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						default :
-							break;
-					}
-
-					nextStateIndex = 0;
-					stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				} else {
-					if (sCIDefault.event7) {
-						stateVector[0] = State.$NullState$;
-
-						nextStateIndex = 0;
-						stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State9;
-
-					}
-
-				}
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State4__region0_State7__region0_State9() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_State3 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-			if (sCIDefault.event4) {
-				//Handle exit of all possible states (of region0) at position 0...
-				switch (stateVector[0]) {
-
-					case MainRegion_State2__region0_State4__region0_State6 :
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-						historyVector[1] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-						historyVector[1] = stateVector[0];
-						stateVector[0] = State.$NullState$;
-
-						break;
-
-					default :
-						break;
-				}
-
-				nextStateIndex = 0;
-				stateVector[0] = State.MainRegion_State2__region0_State5;
-
-			} else {
-				if (sCIDefault.event6) {
-
-					historyVector[1] = stateVector[0];
-					//Handle exit of all possible states (of region0) at position 0...
-					switch (stateVector[0]) {
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-							stateVector[0] = State.$NullState$;
-
-							break;
-
-						default :
-							break;
-					}
-
-					nextStateIndex = 0;
-					stateVector[0] = State.MainRegion_State2__region0_State4__region0_State6;
-
-				} else {
-					if (sCIDefault.event8) {
-						stateVector[0] = State.$NullState$;
-
-						nextStateIndex = 0;
-						stateVector[0] = State.MainRegion_State2__region0_State4__region0_State7__region0_State8;
-
-					}
-
-				}
-
-			}
-
-		}
-
-	}
-	private void reactMainRegion_State2__region0_State5() {
-		if (sCIDefault.event2) {
-
-			historyVector[0] = stateVector[0];
-			//Handle exit of all possible states (of region0) at position 0...
-			switch (stateVector[0]) {
-
-				case MainRegion_State2__region0_State3 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State6 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-
-					historyVector[1] = stateVector[0];
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case MainRegion_State2__region0_State5 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_State1;
-
-		} else {
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case MainRegion_State1 :
-					reactMainRegion_State1();
-					break;
-				case MainRegion_State2 :
-					reactMainRegion_State2();
-					break;
-				case MainRegion_State2__region0_State3 :
-					reactMainRegion_State2__region0_State3();
-					break;
-				case MainRegion_State2__region0_State4 :
-					reactMainRegion_State2__region0_State4();
-					break;
-				case MainRegion_State2__region0_State4__region0_State6 :
-					reactMainRegion_State2__region0_State4__region0_State6();
-					break;
-				case MainRegion_State2__region0_State4__region0_State7 :
-					reactMainRegion_State2__region0_State4__region0_State7();
-					break;
-				case MainRegion_State2__region0_State4__region0_State7__region0_State8 :
-					reactMainRegion_State2__region0_State4__region0_State7__region0_State8();
-					break;
-				case MainRegion_State2__region0_State4__region0_State7__region0_State9 :
-					reactMainRegion_State2__region0_State4__region0_State7__region0_State9();
-					break;
-				case MainRegion_State2__region0_State5 :
-					reactMainRegion_State2__region0_State5();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 15
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simpleevent/ISimpleEventStatemachine.java

@@ -1,15 +0,0 @@
-package org.yakindu.scr.simpleevent;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface ISimpleEventStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseEvent1();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 139
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simpleevent/SimpleEventStatemachine.java

@@ -1,139 +0,0 @@
-package org.yakindu.scr.simpleevent;
-
-public class SimpleEventStatemachine implements ISimpleEventStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_A, Main_region_B, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public SimpleEventStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseEvent1() {
-		sCIDefault.raiseEvent1();
-	}
-
-	public void enter() {
-		entryActionSimpleEvent();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionSimpleEvent();
-	}
-
-	private void entryActionSimpleEvent() {
-
-	}
-
-	private void exitActionSimpleEvent() {
-
-	}
-
-	private void reactMain_region_A() {
-		if (sCIDefault.event1) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_B;
-
-		}
-
-	}
-	private void reactMain_region_B() {
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 15
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simplehierachy/ISimpleHierachyStatemachine.java

@@ -1,15 +0,0 @@
-package org.yakindu.scr.simplehierachy;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface ISimpleHierachyStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseEvent1();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 144
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/simplehierachy/SimpleHierachyStatemachine.java

@@ -1,144 +0,0 @@
-package org.yakindu.scr.simplehierachy;
-
-public class SimpleHierachyStatemachine implements ISimpleHierachyStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_A, Main_region_B, Main_region_B_subregion1_B1, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	public SimpleHierachyStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseEvent1() {
-		sCIDefault.raiseEvent1();
-	}
-
-	public void enter() {
-		entryActionSimpleHierachy();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_subregion1_B1 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionSimpleHierachy();
-	}
-
-	private void entryActionSimpleHierachy() {
-
-	}
-
-	private void exitActionSimpleHierachy() {
-
-	}
-
-	private void reactMain_region_A() {
-		if (sCIDefault.event1) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_B_subregion1_B1;
-
-		}
-
-	}
-	private void reactMain_region_B() {
-	}
-	private void reactMain_region_B_subregion1_B1() {
-
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				case Main_region_B_subregion1_B1 :
-					reactMain_region_B_subregion1_B1();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 16
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/statechartlocalreactions/IStatechartLocalReactionsStatemachine.java

@@ -1,16 +0,0 @@
-package org.yakindu.scr.statechartlocalreactions;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IStatechartLocalReactionsStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public int getMyInt();
-		public void setMyInt(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 181
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/statechartlocalreactions/StatechartLocalReactionsStatemachine.java

@@ -1,181 +0,0 @@
-package org.yakindu.scr.statechartlocalreactions;
-
-public class StatechartLocalReactionsStatemachine
-		implements
-			IStatechartLocalReactionsStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private int myInt;
-
-		public int getMyInt() {
-			return myInt;
-		}
-
-		public void setMyInt(int value) {
-			this.myInt = value;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_S1, Main_region_S2, Region2_a, $NullState$
-	};
-
-	private final State[] stateVector = new State[2];
-
-	private int nextStateIndex;
-
-	public StatechartLocalReactionsStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 2; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public int getMyInt() {
-		return sCIDefault.getMyInt();
-	}
-
-	public void setMyInt(int value) {
-		sCIDefault.setMyInt(value);
-	}
-
-	public void enter() {
-		entryActionStatechartLocalReactions();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_S1;
-
-		nextStateIndex = 1;
-		stateVector[1] = State.Region2_a;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_S1 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_S2 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		//Handle exit of all possible states (of region2) at position 1...
-		switch (stateVector[1]) {
-
-			case Region2_a :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionStatechartLocalReactions();
-	}
-
-	private void entryActionStatechartLocalReactions() {
-
-	}
-
-	private void exitActionStatechartLocalReactions() {
-
-	}
-
-	private boolean conditionStatechartLocalReactionsLr0() {
-		return true;
-	}
-	private void actionsStatechartLocalReactionsLr0() {
-		sCIDefault.setMyInt(sCIDefault.getMyInt() + (1));
-
-	}
-
-	private void reactMain_region_S1() {
-		actionsStatechartLocalReactionsLr0();
-		if (true) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_S2;
-
-		}
-
-	}
-	private void reactMain_region_S2() {
-		actionsStatechartLocalReactionsLr0();
-		if (true) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_S1;
-
-		}
-
-	}
-	private void reactRegion2_a() {
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_S1 :
-					reactMain_region_S1();
-					break;
-				case Main_region_S2 :
-					reactMain_region_S2();
-					break;
-				case Region2_a :
-					reactRegion2_a();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 15
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/stateisactive/IStateIsActiveStatemachine.java

@@ -1,15 +0,0 @@
-package org.yakindu.scr.stateisactive;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IStateIsActiveStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseEvent1();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 176
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/stateisactive/StateIsActiveStatemachine.java

@@ -1,176 +0,0 @@
-package org.yakindu.scr.stateisactive;
-
-public class StateIsActiveStatemachine implements IStateIsActiveStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean event1;
-
-		public void raiseEvent1() {
-			event1 = true;
-		}
-
-		public void clearEvents() {
-			event1 = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		R1_R1A, R1_R1B, R2_R2A, R2_R2B, $NullState$
-	};
-
-	private final State[] stateVector = new State[2];
-
-	private int nextStateIndex;
-
-	public StateIsActiveStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 2; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseEvent1() {
-		sCIDefault.raiseEvent1();
-	}
-
-	public void enter() {
-		entryActionStateIsActive();
-		nextStateIndex = 0;
-		stateVector[0] = State.R1_R1A;
-
-		nextStateIndex = 1;
-		stateVector[1] = State.R2_R2A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of R1) at position 0...
-		switch (stateVector[0]) {
-
-			case R1_R1A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case R1_R1B :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		//Handle exit of all possible states (of R2) at position 1...
-		switch (stateVector[1]) {
-
-			case R2_R2A :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case R2_R2B :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionStateIsActive();
-	}
-
-	private void entryActionStateIsActive() {
-
-	}
-
-	private void exitActionStateIsActive() {
-
-	}
-
-	private void reactR1_R1A() {
-		if (isStateActive(State.R2_R2B)) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.R1_R1B;
-
-		}
-
-	}
-	private void reactR1_R1B() {
-
-	}
-	private void reactR2_R2A() {
-		if (sCIDefault.event1) {
-			stateVector[1] = State.$NullState$;
-
-			nextStateIndex = 1;
-			stateVector[1] = State.R2_R2B;
-
-		}
-	}
-	private void reactR2_R2B() {
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case R1_R1A :
-					reactR1_R1A();
-					break;
-				case R1_R1B :
-					reactR1_R1B();
-					break;
-				case R2_R2A :
-					reactR2_R2A();
-					break;
-				case R2_R2B :
-					reactR2_R2B();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 17
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncfork/ISyncForkStatemachine.java

@@ -1,17 +0,0 @@
-package org.yakindu.scr.syncfork;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface ISyncForkStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseE();
-
-		public void raiseF();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 296
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncfork/SyncForkStatemachine.java

@@ -1,296 +0,0 @@
-package org.yakindu.scr.syncfork;
-
-public class SyncForkStatemachine implements ISyncForkStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean e;
-
-		public void raiseE() {
-			e = true;
-		}
-
-		private boolean f;
-
-		public void raiseF() {
-			f = true;
-		}
-
-		public void clearEvents() {
-			e = false;
-			f = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_A, Main_region_B, Main_region_B_r1_C1, Main_region_B_r1_C2, Main_region_B_r2_D1, Main_region_B_r2_D2, $NullState$
-	};
-
-	private final State[] stateVector = new State[2];
-
-	private int nextStateIndex;
-
-	public SyncForkStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 2; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseE() {
-		sCIDefault.raiseE();
-	}
-
-	public void raiseF() {
-		sCIDefault.raiseF();
-	}
-
-	public void enter() {
-		entryActionSyncFork();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_r1_C1 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_r1_C2 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-		//Handle exit of all possible states (of main region) at position 1...
-		switch (stateVector[1]) {
-
-			case Main_region_B_r2_D1 :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_r2_D2 :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionSyncFork();
-	}
-
-	private void entryActionSyncFork() {
-
-	}
-
-	private void exitActionSyncFork() {
-
-	}
-
-	private void reactMain_region_A() {
-		if (sCIDefault.e) {
-			stateVector[0] = State.$NullState$;
-
-		} else {
-			if (sCIDefault.f) {
-				stateVector[0] = State.$NullState$;
-
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_B_r1_C1;
-
-				nextStateIndex = 1;
-				stateVector[1] = State.Main_region_B_r2_D1;
-
-			}
-		}
-
-	}
-	private void reactMain_region_B() {
-	}
-	private void reactMain_region_B_r1_C1() {
-		if (sCIDefault.e) {
-			//Handle exit of all possible states (of r1) at position 0...
-			switch (stateVector[0]) {
-
-				case Main_region_B_r1_C1 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r1_C2 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			//Handle exit of all possible states (of r2) at position 1...
-			switch (stateVector[1]) {
-
-				case Main_region_B_r2_D1 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r2_D2 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_A;
-
-		} else {
-			if (sCIDefault.f) {
-				stateVector[0] = State.$NullState$;
-
-				nextStateIndex = 0;
-				stateVector[0] = State.Main_region_B_r1_C2;
-
-			}
-
-		}
-
-	}
-	private void reactMain_region_B_r1_C2() {
-		if (sCIDefault.e) {
-			//Handle exit of all possible states (of r1) at position 0...
-			switch (stateVector[0]) {
-
-				case Main_region_B_r1_C1 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r1_C2 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			//Handle exit of all possible states (of r2) at position 1...
-			switch (stateVector[1]) {
-
-				case Main_region_B_r2_D1 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r2_D2 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_A;
-
-		} else {
-
-		}
-
-	}
-	private void reactMain_region_B_r2_D1() {
-		if (sCIDefault.f) {
-			stateVector[1] = State.$NullState$;
-
-			nextStateIndex = 1;
-			stateVector[1] = State.Main_region_B_r2_D2;
-
-		}
-	}
-	private void reactMain_region_B_r2_D2() {
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				case Main_region_B_r1_C1 :
-					reactMain_region_B_r1_C1();
-					break;
-				case Main_region_B_r1_C2 :
-					reactMain_region_B_r1_C2();
-					break;
-				case Main_region_B_r2_D1 :
-					reactMain_region_B_r2_D1();
-					break;
-				case Main_region_B_r2_D2 :
-					reactMain_region_B_r2_D2();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 21
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncjoin/ISyncJoinStatemachine.java

@@ -1,21 +0,0 @@
-package org.yakindu.scr.syncjoin;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface ISyncJoinStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-
-		public void raiseE();
-
-		public void raiseF();
-
-		public void raiseJc();
-
-		public void raiseJd();
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 306
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/syncjoin/SyncJoinStatemachine.java

@@ -1,306 +0,0 @@
-package org.yakindu.scr.syncjoin;
-
-public class SyncJoinStatemachine implements ISyncJoinStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean e;
-
-		public void raiseE() {
-			e = true;
-		}
-
-		private boolean f;
-
-		public void raiseF() {
-			f = true;
-		}
-
-		private boolean jc;
-
-		public void raiseJc() {
-			jc = true;
-		}
-
-		private boolean jd;
-
-		public void raiseJd() {
-			jd = true;
-		}
-
-		public void clearEvents() {
-			e = false;
-			f = false;
-			jc = false;
-			jd = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_A, Main_region_B, Main_region_B_r1_C1, Main_region_B_r1_C2, Main_region_B_r2_D1, Main_region_B_r2_D2, $NullState$
-	};
-
-	private final State[] stateVector = new State[2];
-
-	private int nextStateIndex;
-
-	public SyncJoinStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 2; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseE() {
-		sCIDefault.raiseE();
-	}
-
-	public void raiseF() {
-		sCIDefault.raiseF();
-	}
-
-	public void raiseJc() {
-		sCIDefault.raiseJc();
-	}
-
-	public void raiseJd() {
-		sCIDefault.raiseJd();
-	}
-
-	public void enter() {
-		entryActionSyncJoin();
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_B_r1_C1;
-
-		nextStateIndex = 1;
-		stateVector[1] = State.Main_region_B_r2_D1;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_r1_C1 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_r1_C2 :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-		//Handle exit of all possible states (of main region) at position 1...
-		switch (stateVector[1]) {
-
-			case Main_region_B_r2_D1 :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case Main_region_B_r2_D2 :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionSyncJoin();
-	}
-
-	private void entryActionSyncJoin() {
-
-	}
-
-	private void exitActionSyncJoin() {
-
-	}
-
-	private void reactMain_region_A() {
-		if ((sCIDefault.e || sCIDefault.f)) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_B_r1_C1;
-
-			nextStateIndex = 1;
-			stateVector[1] = State.Main_region_B_r2_D1;
-
-		}
-
-	}
-	private void reactMain_region_B() {
-	}
-	private void reactMain_region_B_r1_C1() {
-		if (sCIDefault.e) {
-			stateVector[0] = State.$NullState$;
-
-			nextStateIndex = 0;
-			stateVector[0] = State.Main_region_B_r1_C2;
-
-		}
-
-	}
-	private void reactMain_region_B_r1_C2() {
-		if (sCIDefault.jc) {
-			//Handle exit of all possible states (of r1) at position 0...
-			switch (stateVector[0]) {
-
-				case Main_region_B_r1_C1 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r1_C2 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			//Handle exit of all possible states (of r2) at position 1...
-			switch (stateVector[1]) {
-
-				case Main_region_B_r2_D1 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r2_D2 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-		}
-
-	}
-	private void reactMain_region_B_r2_D1() {
-		if (sCIDefault.f) {
-			stateVector[1] = State.$NullState$;
-
-			nextStateIndex = 1;
-			stateVector[1] = State.Main_region_B_r2_D2;
-
-		}
-	}
-	private void reactMain_region_B_r2_D2() {
-		if (sCIDefault.jd) {
-			//Handle exit of all possible states (of r1) at position 0...
-			switch (stateVector[0]) {
-
-				case Main_region_B_r1_C1 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r1_C2 :
-					stateVector[0] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-			//Handle exit of all possible states (of r2) at position 1...
-			switch (stateVector[1]) {
-
-				case Main_region_B_r2_D1 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				case Main_region_B_r2_D2 :
-					stateVector[1] = State.$NullState$;
-
-					break;
-
-				default :
-					break;
-			}
-
-		}
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case Main_region_B :
-					reactMain_region_B();
-					break;
-				case Main_region_B_r1_C1 :
-					reactMain_region_B_r1_C1();
-					break;
-				case Main_region_B_r1_C2 :
-					reactMain_region_B_r1_C2();
-					break;
-				case Main_region_B_r2_D1 :
-					reactMain_region_B_r2_D1();
-					break;
-				case Main_region_B_r2_D2 :
-					reactMain_region_B_r2_D2();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 20
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/timetrigger/ITimeTriggerStatemachine.java

@@ -1,20 +0,0 @@
-package org.yakindu.scr.timetrigger;
-
-import org.yakindu.scr.IStatemachine;
-import org.yakindu.scr.ITimedStatemachine;
-
-public interface ITimeTriggerStatemachine
-		extends
-			ITimedStatemachine,
-			IStatemachine {
-
-	public interface SCIDefault {
-
-		public int getValue();
-		public void setValue(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 207
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/timetrigger/TimeTriggerStatemachine.java

@@ -1,207 +0,0 @@
-package org.yakindu.scr.timetrigger;
-
-import org.yakindu.scr.TimeEvent;
-import org.yakindu.scr.ITimerService;
-
-public class TimeTriggerStatemachine implements ITimeTriggerStatemachine {
-
-	private final TimeEvent stateA_time_event_0 = new TimeEvent(false, 0);
-	private final TimeEvent stateB_time_event_0 = new TimeEvent(true, 1);
-
-	private final boolean[] timeEvents = new boolean[2];
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private int value;
-
-		public int getValue() {
-			return value;
-		}
-
-		public void setValue(int value) {
-			this.value = value;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		MainRegion_StateA, MainRegion_StateB, $NullState$
-	};
-
-	private final State[] stateVector = new State[1];
-
-	private int nextStateIndex;
-
-	private ITimerService timerService;
-
-	private long cycleStartTime;
-
-	public TimeTriggerStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-		stateA_time_event_0.setStatemachine(this);
-		stateB_time_event_0.setStatemachine(this);
-
-	}
-
-	public void init() {
-		if (timerService == null) {
-			throw new IllegalStateException("TimerService not set.");
-		}
-		for (int i = 0; i < 1; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-
-		for (int i = 0; i < timeEvents.length; i++) {
-			timeEvents[i] = false;
-		}
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public void setTimerService(ITimerService timerService) {
-		this.timerService = timerService;
-	}
-
-	public ITimerService getTimerService() {
-		return timerService;
-	}
-
-	public void onTimeEventRaised(TimeEvent timeEvent) {
-		timeEvents[timeEvent.getIndex()] = true;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public int getValue() {
-		return sCIDefault.getValue();
-	}
-
-	public void setValue(int value) {
-		sCIDefault.setValue(value);
-	}
-
-	public void enter() {
-		if (timerService == null) {
-			throw new IllegalStateException("TimerService not set.");
-		}
-		cycleStartTime = System.currentTimeMillis();
-		entryActionTimeTrigger();
-		getTimerService().setTimer(stateA_time_event_0, 100, cycleStartTime);
-		sCIDefault.setValue(0);
-
-		nextStateIndex = 0;
-		stateVector[0] = State.MainRegion_StateA;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of mainRegion) at position 0...
-		switch (stateVector[0]) {
-
-			case MainRegion_StateA :
-				stateVector[0] = State.$NullState$;
-				getTimerService().resetTimer(stateA_time_event_0);
-
-				break;
-
-			case MainRegion_StateB :
-				stateVector[0] = State.$NullState$;
-				getTimerService().resetTimer(stateB_time_event_0);
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionTimeTrigger();
-	}
-
-	private void entryActionTimeTrigger() {
-
-	}
-
-	private void exitActionTimeTrigger() {
-
-	}
-
-	private void reactMainRegion_StateA() {
-		if (timeEvents[stateA_time_event_0.getIndex()]) {
-			stateVector[0] = State.$NullState$;
-			getTimerService().resetTimer(stateA_time_event_0);
-
-			getTimerService().setTimer(stateB_time_event_0, 20, cycleStartTime);
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_StateB;
-
-		}
-
-	}
-	private void reactMainRegion_StateB() {
-		if ((sCIDefault.getValue() == 10)) {
-			stateVector[0] = State.$NullState$;
-			getTimerService().resetTimer(stateB_time_event_0);
-
-			getTimerService()
-					.setTimer(stateA_time_event_0, 100, cycleStartTime);
-			sCIDefault.setValue(0);
-
-			nextStateIndex = 0;
-			stateVector[0] = State.MainRegion_StateA;
-
-		} else {
-			if (timeEvents[stateB_time_event_0.getIndex()]) {
-				sCIDefault.setValue(sCIDefault.getValue() + (1));
-
-			}
-
-		}
-
-	}
-
-	public void runCycle() {
-
-		cycleStartTime = System.currentTimeMillis();
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case MainRegion_StateA :
-					reactMainRegion_StateA();
-					break;
-				case MainRegion_StateB :
-					reactMainRegion_StateB();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 17
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/valuedevents/IValuedEventsStatemachine.java

@@ -1,17 +0,0 @@
-package org.yakindu.scr.valuedevents;
-
-import org.yakindu.scr.IStatemachine;
-
-public interface IValuedEventsStatemachine extends IStatemachine {
-
-	public interface SCIDefault {
-		public void raiseIntegerEvent(int value);
-
-		public int getMyVar();
-		public void setMyVar(int value);
-
-	}
-
-	public SCIDefault getSCIDefault();
-
-}

+ 0 - 190
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/scr/valuedevents/ValuedEventsStatemachine.java

@@ -1,190 +0,0 @@
-package org.yakindu.scr.valuedevents;
-
-public class ValuedEventsStatemachine implements IValuedEventsStatemachine {
-
-	private final class SCIDefaultImpl implements SCIDefault {
-
-		private boolean integerEvent;
-
-		private int integerEventValue;
-
-		public void raiseIntegerEvent(int value) {
-			integerEvent = true;
-			integerEventValue = value;
-		}
-
-		private int getIntegerEventValue() {
-			if (!integerEvent)
-				throw new IllegalStateException(
-						"Illegal event value acces. Event IntegerEvent is not raised!");
-			return integerEventValue;
-		}
-
-		private int myVar;
-
-		public int getMyVar() {
-			return myVar;
-		}
-
-		public void setMyVar(int value) {
-			this.myVar = value;
-		}
-
-		public void clearEvents() {
-			integerEvent = false;
-		}
-
-	}
-
-	private SCIDefaultImpl sCIDefault;
-
-	public enum State {
-		Main_region_A, _region1_B, _region1_C, $NullState$
-	};
-
-	private final State[] stateVector = new State[2];
-
-	private int nextStateIndex;
-
-	public ValuedEventsStatemachine() {
-
-		sCIDefault = new SCIDefaultImpl();
-
-	}
-
-	public void init() {
-		for (int i = 0; i < 2; i++) {
-			stateVector[i] = State.$NullState$;
-		}
-
-		clearEvents();
-		clearOutEvents();
-	}
-
-	protected void clearEvents() {
-		sCIDefault.clearEvents();
-
-	}
-
-	protected void clearOutEvents() {
-	}
-
-	public boolean isStateActive(State state) {
-		for (int i = 0; i < stateVector.length; i++) {
-			if (stateVector[i] == state) {
-				return true;
-			}
-		}
-		return false;
-	}
-
-	public SCIDefault getSCIDefault() {
-		return sCIDefault;
-	}
-
-	public void raiseIntegerEvent(int value) {
-		sCIDefault.raiseIntegerEvent(value);
-	}
-
-	public int getMyVar() {
-		return sCIDefault.getMyVar();
-	}
-
-	public void setMyVar(int value) {
-		sCIDefault.setMyVar(value);
-	}
-
-	public void enter() {
-		entryActionValuedEvents();
-		sCIDefault.raiseIntegerEvent((2 * 21));
-
-		nextStateIndex = 0;
-		stateVector[0] = State.Main_region_A;
-
-		nextStateIndex = 1;
-		stateVector[1] = State._region1_B;
-
-	}
-
-	public void exit() {
-		//Handle exit of all possible states (of main region) at position 0...
-		switch (stateVector[0]) {
-
-			case Main_region_A :
-				stateVector[0] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		//Handle exit of all possible states (of region1) at position 1...
-		switch (stateVector[1]) {
-
-			case _region1_B :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			case _region1_C :
-				stateVector[1] = State.$NullState$;
-
-				break;
-
-			default :
-				break;
-		}
-
-		exitActionValuedEvents();
-	}
-
-	private void entryActionValuedEvents() {
-
-	}
-
-	private void exitActionValuedEvents() {
-
-	}
-
-	private void reactMain_region_A() {
-
-	}
-	private void react_region1_B() {
-		if (sCIDefault.integerEvent) {
-			stateVector[1] = State.$NullState$;
-
-			sCIDefault.setMyVar(sCIDefault.integerEventValue);
-
-			nextStateIndex = 1;
-			stateVector[1] = State._region1_C;
-
-		}
-	}
-	private void react_region1_C() {
-	}
-
-	public void runCycle() {
-
-		clearOutEvents();
-
-		for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
-
-			switch (stateVector[nextStateIndex]) {
-				case Main_region_A :
-					reactMain_region_A();
-					break;
-				case _region1_B :
-					react_region1_B();
-					break;
-				case _region1_C :
-					react_region1_C();
-					break;
-				default :
-					// $NullState$
-			}
-		}
-
-		clearEvents();
-	}
-}

+ 0 - 55
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/AlwaysOncycleTest.java

@@ -1,55 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.alwaysoncycle.AlwaysOncycleStatemachine;
-import org.yakindu.scr.alwaysoncycle.AlwaysOncycleStatemachine.State;
-/**
- *  Unit TestCase for AlwaysOncycle
- */
-@SuppressWarnings("all")
-public class AlwaysOncycleTest {
-
-	private AlwaysOncycleStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new AlwaysOncycleStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testalwaysOncycleTest() {
-		assertTrue(statemachine.isStateActive(State.Main_region_StateA));
-		while (statemachine.getValue() < 5) {
-			statemachine.runCycle();
-			assertTrue(statemachine.isStateActive(State.Main_region_StateA));
-		}
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_StateB));
-		while (statemachine.getValue() < 5) {
-			statemachine.runCycle();
-			assertTrue(statemachine.isStateActive(State.Main_region_StateB));
-		}
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_StateA));
-	}
-}

+ 0 - 70
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/ChoiceTest.java

@@ -1,70 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.choice.ChoiceStatemachine;
-import org.yakindu.scr.choice.ChoiceStatemachine.State;
-/**
- *  Unit TestCase for Choice
- */
-@SuppressWarnings("all")
-public class ChoiceTest {
-
-	private ChoiceStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new ChoiceStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testchoiceTest() {
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-		assertTrue(statemachine.getValue() == 4);
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B));
-		assertTrue(statemachine.getValue() == 3);
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_C));
-		assertTrue(statemachine.getValue() == 2);
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B));
-		assertTrue(statemachine.getValue() == 1);
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-		assertTrue(statemachine.getValue() == 1);
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_C));
-		assertTrue(statemachine.getValue() == 0);
-		statemachine.raisePressKey();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-	}
-}

+ 0 - 63
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/DeepHistoryTest.java

@@ -1,63 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.deephistory.DeepHistoryStatemachine;
-import org.yakindu.scr.deephistory.DeepHistoryStatemachine.State;
-/**
- *  Unit TestCase for DeepHistory
- */
-@SuppressWarnings("all")
-public class DeepHistoryTest {
-
-	private DeepHistoryStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new DeepHistoryStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testdeepHistoryTest() {
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		statemachine.raiseEvent3();
-		statemachine.runCycle();
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		statemachine.raiseEvent7();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.MainRegion_State1));
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.MainRegion_State1));
-		assertTrue(!statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.MainRegion_State1));
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-	}
-}

+ 0 - 43
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/GuardTest.java

@@ -1,43 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.guard.GuardStatemachine;
-import org.yakindu.scr.guard.GuardStatemachine.State;
-/**
- *  Unit TestCase for Guard
- */
-@SuppressWarnings("all")
-public class GuardTest {
-
-	private GuardStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new GuardStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testguardTest() {
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-	}
-}

+ 0 - 54
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/PriorityValuesTest.java

@@ -1,54 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.priorityvalues.PriorityValuesStatemachine;
-import org.yakindu.scr.priorityvalues.PriorityValuesStatemachine.State;
-/**
- *  Unit TestCase for PriorityValues
- */
-@SuppressWarnings("all")
-public class PriorityValuesTest {
-
-	private PriorityValuesStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new PriorityValuesStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testtransitionPriority() {
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_C));
-	}
-	@Test
-	public void testregionPriority() {
-		assertTrue(statemachine.isStateActive(State.SomeRegion_A));
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.SomeRegion_B));
-		assertTrue(!statemachine.isStateActive(State.Main_region_E));
-	}
-}

+ 0 - 81
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/ShallowHistoryTest.java

@@ -1,81 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.shallowhistory.ShallowHistoryStatemachine;
-import org.yakindu.scr.shallowhistory.ShallowHistoryStatemachine.State;
-/**
- *  Unit TestCase for ShallowHistory
- */
-@SuppressWarnings("all")
-public class ShallowHistoryTest {
-
-	private ShallowHistoryStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new ShallowHistoryStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testshallowHistoryTest() {
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		statemachine.raiseEvent3();
-		statemachine.runCycle();
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		statemachine.raiseEvent7();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.MainRegion_State1));
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-		statemachine.raiseEvent6();
-		statemachine.runCycle();
-		assertTrue(!statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State6));
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		assertTrue(!statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State8));
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(!statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-		assertTrue(statemachine.isStateActive(State.MainRegion_State1));
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State6));
-		assertTrue(!statemachine.isStateActive(State.MainRegion_State1));
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		assertTrue(!statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State6));
-		assertTrue(statemachine
-				.isStateActive(State.MainRegion_State2__region0_State4__region0_State7__region0_State9));
-	}
-}

+ 0 - 49
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SimpleEventTest.java

@@ -1,49 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.simpleevent.SimpleEventStatemachine;
-import org.yakindu.scr.simpleevent.SimpleEventStatemachine.State;
-/**
- *  Unit TestCase for SimpleEvent
- */
-@SuppressWarnings("all")
-public class SimpleEventTest {
-
-	private SimpleEventStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new SimpleEventStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testsimpleEventTest() {
-		assertTrue("Expected A to be active",
-				statemachine.isStateActive(State.Main_region_A));
-		assertTrue(5 == 5);
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue("Expected B to be active",
-				statemachine.isStateActive(State.Main_region_B));
-	}
-}

+ 0 - 50
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SimpleHierachyTest.java

@@ -1,50 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.simplehierachy.SimpleHierachyStatemachine;
-import org.yakindu.scr.simplehierachy.SimpleHierachyStatemachine.State;
-/**
- *  Unit TestCase for SimpleHierachy
- */
-@SuppressWarnings("all")
-public class SimpleHierachyTest {
-
-	private SimpleHierachyStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new SimpleHierachyStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testsimpleHierachyTest() {
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-		statemachine.raiseEvent1();
-		statemachine.raiseEvent1();
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B));
-		assertTrue(statemachine
-				.isStateActive(State.Main_region_B_subregion1_B1));
-	}
-}

+ 0 - 49
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/StateIsActiveTest.java

@@ -1,49 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.stateisactive.StateIsActiveStatemachine;
-import org.yakindu.scr.stateisactive.StateIsActiveStatemachine.State;
-/**
- *  Unit TestCase for StateIsActive
- */
-@SuppressWarnings("all")
-public class StateIsActiveTest {
-
-	private StateIsActiveStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new StateIsActiveStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void teststateIsActive() {
-		assertTrue(statemachine.isStateActive(State.R1_R1A));
-		assertTrue(statemachine.isStateActive(State.R2_R2A));
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.R1_R1B));
-		assertTrue(statemachine.isStateActive(State.R2_R2B));
-	}
-}

+ 0 - 53
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/StatechartLocalReactionsTest.java

@@ -1,53 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.statechartlocalreactions.StatechartLocalReactionsStatemachine;
-import org.yakindu.scr.statechartlocalreactions.StatechartLocalReactionsStatemachine.State;
-/**
- *  Unit TestCase for StatechartLocalReactions
- */
-@SuppressWarnings("all")
-public class StatechartLocalReactionsTest {
-
-	private StatechartLocalReactionsStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new StatechartLocalReactionsStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void teststatechartLocalReactionsTest() {
-		assertTrue(statemachine.isStateActive(State.Main_region_S1));
-		assertTrue(statemachine.isStateActive(State.Region2_a));
-		while (statemachine.getMyInt() < 10) {
-			assertTrue(statemachine.isStateActive(State.Region2_a));
-			if (statemachine.getMyInt() % 2 == 0) {
-				assertTrue(statemachine.isStateActive(State.Main_region_S1));;
-			} else {
-				assertTrue(statemachine.isStateActive(State.Main_region_S2));;
-			}
-			statemachine.runCycle();
-		}
-	}
-}

+ 0 - 43
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SyncForkTest.java

@@ -1,43 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.syncfork.SyncForkStatemachine;
-import org.yakindu.scr.syncfork.SyncForkStatemachine.State;
-/**
- *  Unit TestCase for SyncFork
- */
-@SuppressWarnings("all")
-public class SyncForkTest {
-
-	private SyncForkStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new SyncForkStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testsyncForkTest() {
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-	}
-}

+ 0 - 105
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/SyncJoinTest.java

@@ -1,105 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.syncjoin.SyncJoinStatemachine;
-import org.yakindu.scr.syncjoin.SyncJoinStatemachine.State;
-/**
- *  Unit TestCase for SyncJoin
- */
-@SuppressWarnings("all")
-public class SyncJoinTest {
-
-	private SyncJoinStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new SyncJoinStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testsyncJoin_C2_Waits() {
-		assertTrue(statemachine.isStateActive(State.Main_region_B));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C1));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D1));
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D1));
-		statemachine.raiseJc();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D1));
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D1));
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D1));
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseJc();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-	}
-	@Test
-	public void testsyncJoin_D2_Waits() {
-		assertTrue(statemachine.isStateActive(State.Main_region_B));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C1));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D1));
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C1));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseJc();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C1));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C1));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C1));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r1_C2));
-		assertTrue(statemachine.isStateActive(State.Main_region_B_r2_D2));
-	}
-}

+ 0 - 46
test-plugins/org.yakindu.sct.generator.java.runtime.test/src-gen/org/yakindu/sct/generator/java/runtime/test/ValuedEventsTest.java

@@ -1,46 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.runtime.test;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.valuedevents.ValuedEventsStatemachine;
-import org.yakindu.scr.valuedevents.ValuedEventsStatemachine.State;
-/**
- *  Unit TestCase for ValuedEvents
- */
-@SuppressWarnings("all")
-public class ValuedEventsTest {
-
-	private ValuedEventsStatemachine statemachine;
-
-	@Before
-	public void setUp() {
-		statemachine = new ValuedEventsStatemachine();
-		statemachine.init();
-		statemachine.enter();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-
-	@Test
-	public void testvaluedEventTest() {
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.Main_region_A));
-		assertTrue(statemachine.isStateActive(State._region1_C));
-		assertTrue(statemachine.getMyVar() == 42);
-	}
-}

+ 0 - 169
test-plugins/org.yakindu.sct.generator.java.runtime.test/src/org/yakindu/sct/generator/java/JavaSCTGeneratorTest.java

@@ -1,169 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java;
-
-import static util.TestModels.ALWAYS_ONCYCLE;
-import static util.TestModels.CHOICE;
-import static util.TestModels.DEEP_HISTORY;
-import static util.TestModels.FEATURE_CALLS;
-import static util.TestModels.GUARD;
-import static util.TestModels.PRIORITY_VALUES;
-import static util.TestModels.SHALLOW_HISTORY;
-import static util.TestModels.SIMPLE_EVENT;
-import static util.TestModels.SIMPLE_HIERACHY;
-import static util.TestModels.STATECHART_LOCAL_REACTIONS;
-import static util.TestModels.STATE_ACTIVE;
-import static util.TestModels.SYNC_FORK;
-import static util.TestModels.SYNC_JOIN;
-import static util.TestModels.TIME_TRIGGER;
-import static util.TestModels.VALUED_EVENTS;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.xtext.junit4.InjectWith;
-import org.eclipse.xtext.junit4.XtextRunner;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.java.util.AbstractJavaGeneratorTest;
-import org.yakindu.sct.generator.java.util.JavaGeneratorInjectionProvider;
-import org.yakindu.sct.model.sgraph.Statechart;
-
-import util.TestModels;
-
-import com.google.inject.Inject;
-
-/**
- * These tests only check for compile errors, they don't check the behaviour of
- * the generated Statemachine!
- * 
- * @author andreas muelder - Initial contribution and API
- * 
- */
-@RunWith(XtextRunner.class)
-@InjectWith(JavaGeneratorInjectionProvider.class)
-public class JavaSCTGeneratorTest extends AbstractJavaGeneratorTest {
-
-	@Inject
-	private TestModels models;
-
-	@Test
-	public void testAlwaysOnCycleModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(ALWAYS_ONCYCLE);
-		failOnError(generateAndCompile(statechart));
-
-	}
-
-	@Test
-	public void testChoiceModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(CHOICE);
-		failOnError(generateAndCompile(statechart));
-
-	}
-
-	@Test
-	public void testDeepHistoryModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(DEEP_HISTORY);
-		failOnError(generateAndCompile(statechart));
-
-	}
-
-	@Test
-	public void testFeatureCallsModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(FEATURE_CALLS);
-		failOnError(generateAndCompile(statechart));
-
-	}
-
-	@Test
-	public void testGuardModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(GUARD);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testPriorityValuesModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(PRIORITY_VALUES);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testShallowHistoryModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(SHALLOW_HISTORY);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testSimpleEventModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(SIMPLE_EVENT);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testSimpleHierachyModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(SIMPLE_HIERACHY);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testStatechartLocalReactionsModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(STATECHART_LOCAL_REACTIONS);
-		failOnError(generateAndCompile(statechart));
-
-	}
-
-	@Test
-	public void testStateActiveModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(STATE_ACTIVE);
-		failOnError(generateAndCompile(statechart));
-
-	}
-
-	@Test
-	public void testSyncForkModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(SYNC_FORK);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testSyncJoinModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(SYNC_JOIN);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testTimeTriggerModel() throws Exception {
-		Statechart statechart = models.loadStatechartFromResource(TIME_TRIGGER);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	@Test
-	public void testValuedEventsModel() throws Exception {
-		Statechart statechart = models
-				.loadStatechartFromResource(VALUED_EVENTS);
-		failOnError(generateAndCompile(statechart));
-	}
-
-	private void failOnError(IMarker[] diagnostics) throws CoreException {
-		for (IMarker diagnostic : diagnostics) {
-			int severity = (Integer) diagnostic.getAttribute("severity");
-			if (severity == IMarker.SEVERITY_ERROR) {
-				Assert.fail(diagnostic.getAttribute(IMarker.MESSAGE, ""));
-			}
-		}
-	}
-}

+ 0 - 93
test-plugins/org.yakindu.sct.generator.java.runtime.test/src/org/yakindu/sct/generator/java/util/AbstractJavaGeneratorTest.java

@@ -1,93 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.util;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaModelMarker;
-import org.yakindu.sct.generator.core.util.GeneratorUtils;
-import org.yakindu.sct.generator.java.JavaSCTGenerator;
-import org.yakindu.sct.model.sgen.FeatureConfiguration;
-import org.yakindu.sct.model.sgen.FeatureParameter;
-import org.yakindu.sct.model.sgen.FeatureParameterValue;
-import org.yakindu.sct.model.sgen.FeatureType;
-import org.yakindu.sct.model.sgen.GeneratorEntry;
-import org.yakindu.sct.model.sgen.SGenFactory;
-import org.yakindu.sct.model.sgraph.Statechart;
-
-import com.google.inject.Inject;
-
-/**
- * 
- * @author andreas muelder - Initial contribution and API
- * 
- */
-public abstract class AbstractJavaGeneratorTest {
-
-	private static final String SRC_GEN = "src-gen";
-	private static final String TARGET_PROJECT = "targetProject";
-	private static final String CONTENT_TYPE = "statechart";
-	private static final String OUTLET_FEATURE = "Outlet";
-	private static final String TARGET_FOLDER = "targetFolder";
-
-	@Inject
-	protected JavaSCTGenerator generator;
-
-
-	public IMarker[] generateAndCompile(
-			Statechart statechart) throws Exception {
-		GeneratorEntry entry = createGeneratorEntry(statechart.getName(),
-				SRC_GEN);
-		entry.setElementRef(statechart);
-		IProject targetProject = GeneratorUtils.getTargetProject(entry);
-		targetProject.delete(true, new NullProgressMonitor());
-		generator.generate(entry);
-		targetProject = GeneratorUtils.getTargetProject(entry);
-		targetProject.build(IncrementalProjectBuilder.INCREMENTAL_BUILD,
-				new NullProgressMonitor());
-		IMarker[] markers = targetProject.findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER,
-				true, IResource.DEPTH_INFINITE);
-		return markers;
-	}
-
-	private GeneratorEntry createGeneratorEntry(String targetProject,
-			String targetFolder) {
-		GeneratorEntry entry = SGenFactory.eINSTANCE.createGeneratorEntry();
-		entry.setContentType(CONTENT_TYPE);
-		FeatureConfiguration config = SGenFactory.eINSTANCE
-				.createFeatureConfiguration();
-		FeatureType type = SGenFactory.eINSTANCE.createFeatureType();
-		type.setName(OUTLET_FEATURE);
-		config.setType(type);
-		FeatureParameterValue project = SGenFactory.eINSTANCE
-				.createFeatureParameterValue();
-		FeatureParameter projectParameter = SGenFactory.eINSTANCE
-				.createFeatureParameter();
-		projectParameter.setName(TARGET_PROJECT);
-		project.setParameter(projectParameter);
-		project.setValue(targetProject);
-		config.getParameterValues().add(project);
-		FeatureParameterValue targetFolderValue = SGenFactory.eINSTANCE
-				.createFeatureParameterValue();
-		FeatureParameter targetParameter = SGenFactory.eINSTANCE
-				.createFeatureParameter();
-		targetParameter.setName(TARGET_FOLDER);
-		targetFolderValue.setParameter(targetParameter);
-		targetFolderValue.setValue(targetFolder);
-		config.getParameterValues().add(targetFolderValue);
-		entry.getFeatures().add(config);
-		return entry;
-	}
-
-}

+ 0 - 30
test-plugins/org.yakindu.sct.generator.java.runtime.test/src/org/yakindu/sct/generator/java/util/JavaGeneratorInjectionProvider.java

@@ -1,30 +0,0 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- *     committers of YAKINDU - initial API and implementation
- */
-package org.yakindu.sct.generator.java.util;
-
-import org.eclipse.xtext.junit4.IInjectorProvider;
-import org.yakindu.sct.model.sexec.transformation.SequencerModule;
-
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-
-/**
- * 
- * @author andreas muelder - Initial contribution and API
- * 
- */
-public class JavaGeneratorInjectionProvider implements IInjectorProvider {
-
-	public Injector getInjector() {
-		return Guice.createInjector(new SequencerModule());
-	}
-
-}