Skip to content

Commit

Permalink
add GUI relative things
Browse files Browse the repository at this point in the history
  • Loading branch information
yxu927 committed Jul 29, 2024
1 parent 9778bf1 commit f6787e2
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public boolean isAnalytical() {
}



public PopulationFunction getModel() {
return model;
}
Expand All @@ -52,4 +53,22 @@ public Value<PopulationFunction[]> getModels() {
public Value<PopulationFunction> apply() {
return new Value<>(null, model);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("SVSPopulationFunction using model: ").append(model.toString());

Value<Integer> indicator = getIndicator();
Value<PopulationFunction[]> models = getModels();

if (indicator != null && models != null) {
sb.append(" with indicator ").append(indicator.value()).append(" and models: ");
for (PopulationFunction pf : models.value()) {
sb.append(pf.toString()).append(" ");
}
}

return sb.toString();
}
}

0 comments on commit f6787e2

Please sign in to comment.