Changeset 1886
- Timestamp:
- 03/05/15 11:35:47 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/usability/CMDtaskTreeStatistics.java
r1769 r1886 23 23 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 24 24 import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance; 25 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration; 26 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 27 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection; 28 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 25 29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 26 30 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; … … 83 87 int allEvents = 0; 84 88 89 int noOfEventTasks = 0; 90 int noOfSequences = 0; 91 int noOfIterations = 0; 92 int noOfSelections = 0; 93 int noOfOptionals = 0; 94 85 95 for (ITask task : taskModel.getTasks()) { 86 96 int covQuant = … … 93 103 94 104 if (task instanceof IEventTask) { 105 noOfEventTasks++; 95 106 allEvents += task.getInstances().size(); 107 } 108 else if (task instanceof ISequence) { 109 noOfSequences++; 110 } 111 else if (task instanceof IIteration) { 112 noOfIterations++; 113 } 114 else if (task instanceof ISelection) { 115 noOfSelections++; 116 } 117 else if (task instanceof IOptional) { 118 noOfOptionals++; 96 119 } 97 120 } 98 121 122 Console.println(noOfEventTasks + " eventTasks, " + noOfSequences + " sequences, " + 123 noOfIterations + " iterations, " + noOfSelections + " selections, " + 124 noOfOptionals + " optionals"); 99 125 Console.println(taskCount + " of " + allTasks + " tasks (" + (taskCount * 100 / allTasks) + 100 126 "%) covered " + coveredEvents.size() + " of " + allEvents +
Note: See TracChangeset
for help on using the changeset viewer.