Skip to content
Snippets Groups Projects
Commit 2f872123 authored by Johannes Mey's avatar Johannes Mey
Browse files

remove debug output in SM, make backlink non-optional in SM

parent 952dbf63
Branches
No related tags found
No related merge requests found
aspect SMtoDG { aspect SMtoDG {
syn DependencyGraph StateMachine.dependencyGraph() { syn DependencyGraph StateMachine.dependencyGraph() {
DependencyGraph dg = new DependencyGraph(); DependencyGraph dg = new DependencyGraph();
dg.setStateMachine(this); dg.setStateMachine(this);
Map<State,Component> componentMap = new HashMap<>(); Map<State,Component> componentMap = new HashMap<>();
...@@ -15,13 +14,8 @@ aspect SMtoDG { ...@@ -15,13 +14,8 @@ aspect SMtoDG {
for (Transition t: transitions()) { for (Transition t: transitions()) {
Component to = componentMap.get(t.getTo()); Component to = componentMap.get(t.getTo());
Component from = componentMap.get(t.getFrom()); Component from = componentMap.get(t.getFrom());
//if (!from.getToList().contains(to)) {
logger.info("adding {} -> {}", from, to);
from.addTo(to); from.addTo(to);
//}
} }
return dg; return dg;
} }
......
rel DependencyGraph.StateMachine -> StateMachine;
rel Component.State -> State; rel Component.State -> State;
rel DependencyGraph.StateMachine? -> StateMachine;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment