Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-02-08 04:29:51 -0500
committerHenrik Rentz-Reichert2013-02-08 04:30:41 -0500
commita6e700137dfd6408042e1cc13d845c7a9fa9f89b (patch)
treec11d7021958a607ec61873e0e328dc4b6bda4bc7 /plugins/org.eclipse.etrice.abstractexec.behavior
parent320cff5ef39f5e3771a3124af49ed3a0764e36d5 (diff)
downloadorg.eclipse.etrice-a6e700137dfd6408042e1cc13d845c7a9fa9f89b.tar.gz
org.eclipse.etrice-a6e700137dfd6408042e1cc13d845c7a9fa9f89b.tar.xz
org.eclipse.etrice-a6e700137dfd6408042e1cc13d845c7a9fa9f89b.zip
[core.room, abstractexec, generator] moved method from genmodel to RoomHelpers
Diffstat (limited to 'plugins/org.eclipse.etrice.abstractexec.behavior')
-rw-r--r--plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/ReachabilityCheck.java6
-rw-r--r--plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/SemanticsCheck.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/ReachabilityCheck.java b/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/ReachabilityCheck.java
index 2af199a2c..43c1c91fd 100644
--- a/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/ReachabilityCheck.java
+++ b/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/ReachabilityCheck.java
@@ -58,7 +58,7 @@ public class ReachabilityCheck {
for (Transition trans : transitions)
if (trans instanceof InitialTransition) {
visited.add(trans);
- StateGraphNode cur = xpAct.getNode(trans.getTo());
+ StateGraphNode cur = RoomHelpers.getNode(trans.getTo());
if (!visited.contains(cur))
queue.add(cur);
break;
@@ -100,7 +100,7 @@ public class ReachabilityCheck {
for (ActiveTrigger trigger : xpAct.getActiveTriggers(st)) {
for (Transition trans : trigger.getTransitions()) {
visited.add(trans);
- StateGraphNode target = xpAct.getNode(trans.getTo());
+ StateGraphNode target = RoomHelpers.getNode(trans.getTo());
if (!visited.contains(target)) {
queue.add(target);
StateGraph triggerContext = (StateGraph) trans
@@ -131,7 +131,7 @@ public class ReachabilityCheck {
}
for (Transition trans : xpAct.getOutgoingTransitions(node)) {
visited.add(trans);
- StateGraphNode target = xpAct.getNode(trans.getTo());
+ StateGraphNode target = RoomHelpers.getNode(trans.getTo());
if (!visited.contains(target)) {
queue.add(target);
diff --git a/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/SemanticsCheck.java b/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/SemanticsCheck.java
index 81947f4d0..83d1fae91 100644
--- a/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/SemanticsCheck.java
+++ b/plugins/org.eclipse.etrice.abstractexec.behavior/src/org/eclipse/etrice/abstractexec/behavior/SemanticsCheck.java
@@ -86,7 +86,7 @@ public class SemanticsCheck {
EList<Transition> transitions = graph.getTransitions();
for (Transition trans : transitions)
if (trans instanceof InitialTransition) {
- StateGraphNode cur = xpAct.getNode(trans.getTo());
+ StateGraphNode cur = RoomHelpers.getNode(trans.getTo());
List<HandledMessage> msgList = codeAnalyzer.analyze(trans.getAction());
if (cur instanceof State) {
msgList.addAll(codeAnalyzer.analyze(((State) cur).getEntryCode()));
@@ -128,7 +128,7 @@ public class SemanticsCheck {
}
for (Transition trans : trigger.getTransitions()) {
- StateGraphNode target = xpAct.getNode(trans.getTo());
+ StateGraphNode target = RoomHelpers.getNode(trans.getTo());
List<HandledMessage> msgList = new LinkedList<HandledMessage>();
// create a list of codes here in the order
// trigger, exit, action, entry
@@ -188,7 +188,7 @@ public class SemanticsCheck {
for (Transition trans : xpAct.getOutgoingTransitions(node)) {
ActiveRules tempRule = mapToRules.get(node).createCopy();
List<HandledMessage> msgList = codeAnalyzer.analyze(trans.getAction());
- StateGraphNode target = xpAct.getNode(trans.getTo());
+ StateGraphNode target = RoomHelpers.getNode(trans.getTo());
if (target instanceof State) {
msgList.addAll(codeAnalyzer.analyze(((State) target).getEntryCode()));
}

Back to the top