|
@@ -32,161 +32,196 @@ import de.itemis.xtext.utils.gmf.resource.InjectMembersResource;
|
|
|
* @author andreas muelder - Initial contribution and API
|
|
|
*
|
|
|
*/
|
|
|
-public class TestModels {
|
|
|
-
|
|
|
- private static final String TESTMODEL_DIR = "org.yakindu.sct.test.models/testmodels/";
|
|
|
+public class TestModels {
|
|
|
|
|
|
+ public static final String ALWAYS_ONCYCLE = "AlwaysOncycle.sct";
|
|
|
public static final String BIT_EXPRESSIONS = "BitExpressions.sct";
|
|
|
- public static final String REAL_EXPRESSIONS = "RealExpressions.sct";
|
|
|
- public static final String STRING_EXPRESSIONS = "StringExpressions.sct";
|
|
|
- public static final String INTEGER_EXPRESSIONS = "IntegerExpressions.sct";
|
|
|
public static final String BOOLEAN_EXPRESSIONS = "BooleanExpressions.sct";
|
|
|
- public static final String ALWAYS_ONCYCLE = "AlwaysOncycle.sct";
|
|
|
+ public static final String C_KEYWORDS_M = "CKeywords.sct";
|
|
|
public static final String CHOICE = "Choice.sct";
|
|
|
public static final String DEEP_HISTORY = "DeepHistory.sct";
|
|
|
public static final String FEATURE_CALLS = "FeatureCalls.sct";
|
|
|
public static final String GUARD = "Guard.sct";
|
|
|
+ public static final String INTEGER_EXPRESSIONS = "IntegerExpressions.sct";
|
|
|
+ public static final String JAVA_KEYWORDS_M = "JavaKeywords.sct";
|
|
|
public static final String PRIORITY_VALUES = "PriorityValues.sct";
|
|
|
+ public static final String RAISE_EVENTS = "RaiseEvent.sct";
|
|
|
+ public static final String REAL_EXPRESSIONS = "RealExpressions.sct";
|
|
|
+ public static final String SAME_NAME_DIFFERENT_REGION = "SameNameDifferentRegion.sct";
|
|
|
public static final String SHALLOW_HISTORY = "ShallowHistory.sct";
|
|
|
public static final String SIMPLE_EVENT = "SimpleEvent.sct";
|
|
|
public static final String SIMPLE_HIERACHY = "SimpleHierachy.sct";
|
|
|
- public static final String STATECHART_LOCAL_REACTIONS = "StatechartLocalReactions.sct";
|
|
|
public static final String STATE_ACTIVE = "StateIsActive.sct";
|
|
|
+ public static final String STATECHART_LOCAL_REACTIONS = "StatechartLocalReactions.sct";
|
|
|
+ public static final String STRING_EXPRESSIONS = "StringExpressions.sct";
|
|
|
public static final String SYNC_FORK = "SyncFork.sct";
|
|
|
public static final String SYNC_JOIN = "SyncJoin.sct";
|
|
|
+ private static final String TESTMODEL_DIR = "org.yakindu.sct.test.models/testmodels/";
|
|
|
+ public static final String TIME_TRIGGER = "TimeTrigger.sct";
|
|
|
public static final String VALUED_EVENTS = "ValuedEvents.sct";
|
|
|
|
|
|
@Inject
|
|
|
private ModelSequencer sequencer;
|
|
|
|
|
|
+ /**
|
|
|
+ * <img src="../../images/AlwaysOncycle.png" /> <br />
|
|
|
+ *
|
|
|
+ * @return the {@link ExecutionFlow}
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ public ExecutionFlow createAlwaysOncycleModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(ALWAYS_ONCYCLE);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* <img src="../../images/SimpleEvent.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createBitExpressions() throws IOException {
|
|
|
+ public ExecutionFlow createBitExpressionsModel() throws IOException {
|
|
|
return loadExecutionFlowFromResource(BIT_EXPRESSIONS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/RealExpressions.png" /> <br />
|
|
|
+ * <img src="../../images/BooleanExpressions.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createRealExpressions() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(REAL_EXPRESSIONS);
|
|
|
+
|
|
|
+ public ExecutionFlow createBooleanExpressionsModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(BOOLEAN_EXPRESSIONS);
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
- * <img src="../../images/StringExpressions.png" /> <br />
|
|
|
+ * <img src="../../images/Choice.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createStringExpressions() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(STRING_EXPRESSIONS);
|
|
|
+ public ExecutionFlow createChoiceJunctionModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(CHOICE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/IntegerExpressions.png" /> <br />
|
|
|
+ * <img src="../../images/CKeywords.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createIntegerExpressions() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(INTEGER_EXPRESSIONS);
|
|
|
+ public ExecutionFlow createCKeywordModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(C_KEYWORDS_M);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/BooleanExpressions.png" /> <br />
|
|
|
+ * <img src="../../images/DeepHistory.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
+ public ExecutionFlow createDeepHistoryModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(DEEP_HISTORY);
|
|
|
+ }
|
|
|
|
|
|
- public ExecutionFlow createBooleanExpressions() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(BOOLEAN_EXPRESSIONS);
|
|
|
+ /**
|
|
|
+ * <img src="../../images/FeatureCalls.png" /> <br />
|
|
|
+ *
|
|
|
+ * @return the {@link ExecutionFlow}
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ public ExecutionFlow createFeatureCallModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(FEATURE_CALLS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/BitExpressions.png" /> <br />
|
|
|
+ * <img src="../../images/Guard.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createSimpleEventModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(SIMPLE_EVENT);
|
|
|
+ public ExecutionFlow createGuardModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(GUARD);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/PriorityValues.png" /> <br />
|
|
|
+ * <img src="../../images/IntegerExpressions.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createPriorityValueModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(PRIORITY_VALUES);
|
|
|
+ public ExecutionFlow createIntegerExpressionsModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(INTEGER_EXPRESSIONS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/ShallowHistory.png" /> <br />
|
|
|
+ * <img src="../../images/JavaKeywords.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createShallowHistoryModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(SHALLOW_HISTORY);
|
|
|
+ public ExecutionFlow createJavaKeywordsModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(JAVA_KEYWORDS_M);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/SyncFork.png" /> <br />
|
|
|
+ * <img src="../../images/PriorityValues.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createSyncForkModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(SYNC_FORK);
|
|
|
+ public ExecutionFlow createPriorityValueModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(PRIORITY_VALUES);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/SyncJoin.png" /> <br />
|
|
|
+ * <img src="../../images/RaisEvent.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createSyncJoinModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(SYNC_JOIN);
|
|
|
+ public ExecutionFlow createRaisEventModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(RAISE_EVENTS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/Choice.png" /> <br />
|
|
|
+ * <img src="../../images/RealExpressions.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createChoiceJunctionModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(CHOICE);
|
|
|
+ public ExecutionFlow createRealExpressionsModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(REAL_EXPRESSIONS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/Guard.png" /> <br />
|
|
|
+ * <img src="../../images/SameNameDifferentRegion.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createGuardModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(GUARD);
|
|
|
+ public ExecutionFlow createSameNameDifferentRegionModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(SAME_NAME_DIFFERENT_REGION);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/AlwaysOncycle.png" /> <br />
|
|
|
+ * <img src="../../images/ShallowHistory.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createAlwaysOncycle() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(ALWAYS_ONCYCLE);
|
|
|
+ public ExecutionFlow createShallowHistoryModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(SHALLOW_HISTORY);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <img src="../../images/BitExpressions.png" /> <br />
|
|
|
+ *
|
|
|
+ * @return the {@link ExecutionFlow}
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ public ExecutionFlow createSimpleEventModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(SIMPLE_EVENT);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -200,13 +235,14 @@ public class TestModels {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/DeepHistory.png" /> <br />
|
|
|
+ * <img src="../../images/StatechartLocalReactions.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createDeepHistoryModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(DEEP_HISTORY);
|
|
|
+ public ExecutionFlow createStatechartLocalReactionsModel()
|
|
|
+ throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(STATECHART_LOCAL_REACTIONS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -220,34 +256,53 @@ public class TestModels {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/ValuedEvents.png" /> <br />
|
|
|
+ * <img src="../../images/StringExpressions.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createValuedEventsModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(VALUED_EVENTS);
|
|
|
+ public ExecutionFlow createStringExpressionsModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(STRING_EXPRESSIONS);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/FeatureCalls.png" /> <br />
|
|
|
+ * <img src="../../images/SyncFork.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createFeatureCallModel() throws IOException {
|
|
|
- return loadExecutionFlowFromResource(FEATURE_CALLS);
|
|
|
+ public ExecutionFlow createSyncForkModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(SYNC_FORK);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * <img src="../../images/StatechartLocalReactions.png" /> <br />
|
|
|
+ * <img src="../../images/SyncJoin.png" /> <br />
|
|
|
*
|
|
|
* @return the {@link ExecutionFlow}
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public ExecutionFlow createStatechartLocalReactionsModel()
|
|
|
- throws IOException {
|
|
|
- return loadExecutionFlowFromResource(STATECHART_LOCAL_REACTIONS);
|
|
|
+ public ExecutionFlow createSyncJoinModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(SYNC_JOIN);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <img src="../../images/TimeTrigger.png" /> <br />
|
|
|
+ *
|
|
|
+ * @return the {@link ExecutionFlow}
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ public ExecutionFlow createTimeTriggerModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(TIME_TRIGGER);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <img src="../../images/ValuedEvents.png" /> <br />
|
|
|
+ *
|
|
|
+ * @return the {@link ExecutionFlow}
|
|
|
+ * @throws IOException
|
|
|
+ */
|
|
|
+ public ExecutionFlow createValuedEventsModel() throws IOException {
|
|
|
+ return loadExecutionFlowFromResource(VALUED_EVENTS);
|
|
|
}
|
|
|
|
|
|
/**
|