Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rensink committed Jul 23, 2024
2 parents 502ca3a + 773a6c9 commit db69d2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions src/main/java/nl/utwente/groove/explore/ExploreResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ public GTSFragment toFragment(boolean internal) {
return result;
}

/** Returns the number of states and transitions found during exploration. */
public String getStatistics() {
return "Exploration result: %s states, %s transitions"
.formatted(this.states.size(), this.transitions.size());
}

@Override
public String toString() {
return "Result [states=" + this.states + ", " + "transitions=" + this.transitions
Expand Down
8 changes: 1 addition & 7 deletions src/main/java/nl/utwente/groove/explore/result/Acceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ public ExploreResult getResult() {

/** Returns a message describing the accepted result. */
public String getMessage() {
String result;
if (this.result.isEmpty()) {
result = "No result states found";
} else {
result = this.result.size() + " result states found: " + this.result;
}
return result;
return this.result.getStatistics();
}
}

0 comments on commit db69d2a

Please sign in to comment.