File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/java/nl/utwente/groove/explore Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,12 @@ public GTSFragment toFragment(boolean internal) {
120
120
return result ;
121
121
}
122
122
123
+ /** Returns the number of states and transitions found during exploration. */
124
+ public String getStatistics () {
125
+ return "Exploration result: %s states, %s transitions"
126
+ .formatted (this .states .size (), this .transitions .size ());
127
+ }
128
+
123
129
@ Override
124
130
public String toString () {
125
131
return "Result [states=" + this .states + ", " + "transitions=" + this .transitions
Original file line number Diff line number Diff line change @@ -114,12 +114,6 @@ public ExploreResult getResult() {
114
114
115
115
/** Returns a message describing the accepted result. */
116
116
public String getMessage () {
117
- String result ;
118
- if (this .result .isEmpty ()) {
119
- result = "No result states found" ;
120
- } else {
121
- result = this .result .size () + " result states found: " + this .result ;
122
- }
123
- return result ;
117
+ return this .result .getStatistics ();
124
118
}
125
119
}
You can’t perform that action at this time.
0 commit comments