Changeset 1930 for trunk/autoquest-plugin-uml/src
- Timestamp:
- 03/23/15 13:36:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtils.java
r1929 r1930 66 66 import org.eclipse.uml2.uml.Property; 67 67 import org.eclipse.uml2.uml.Region; 68 import org.eclipse.uml2.uml.Relationship;69 68 import org.eclipse.uml2.uml.Slot; 70 69 import org.eclipse.uml2.uml.StateMachine; … … 251 250 StateMachine stateMachine) 252 251 { 253 System.out.println("foo");254 252 List<List<Transition>> matchingSequences = 255 253 determineMatchingTransitionSequences(sequence, stateMachine); 256 System.out.println(matchingSequences.size());257 254 258 255 if (matchingSequences.size() != 1) { … … 375 372 for (Iterator<Event> eventIterator = sequence.iterator(); eventIterator.hasNext();) { 376 373 Event event = eventIterator.next(); 377 System.out.println(event);378 System.out.println(matchingSequences);379 374 if (matchingSequences == null) { 380 375 matchingSequences = new LinkedList<>(); … … 783 778 CallEvent callEvent = (CallEvent) triggers.get(0).getEvent(); 784 779 String transitionMethod = callEvent.getOperation().getName(); 785 786 Interface intface = callEvent.getOperation().getInterface();787 for (Relationship relationship : intface.getRelationships()) {788 for (Element element : relationship.getRelatedElements()) {789 if (element instanceof Component) {790 791 }792 }793 }794 795 780 String transitionService = 796 781 interfaceServiceMap.get(callEvent.getOperation().getInterface()); 782 797 783 if (eventMethod.equals(transitionMethod) && 798 784 eventService.equals(transitionService)) … … 801 787 } 802 788 } 789 } else { 790 throw new RuntimeException("only one trigger of type CallEvent per transition allowed: " + transition.getName()); 803 791 } 804 792
Note: See TracChangeset
for help on using the changeset viewer.