Skip to content

Commit 2dd81c5

Browse files
authored
Merge pull request #208 from dav-sonn/bug-fix/collector-fix
A new option to persist health statistics added to the collector was annotated with @GUIParameter, which creates a menu field in the SimPath's GUI. However JAS-mine-GUI requires getters and setters for the above to work, as the field is private. This PR adds the required getter and setter methods fixing the issue.
2 parents 49a2ea0 + 84ea5a5 commit 2dd81c5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/main/java/simpaths/experiment/SimPathsCollector.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,4 +1018,13 @@ public void setPersistStatistics3(boolean val) {
10181018
public void calculateAtRiskOfPoverty() {
10191019
calculateEquivalisedHouseholdDisposableIncome();
10201020
}
1021-
}
1021+
1022+
public boolean isPersistHealthStatistics() {
1023+
return persistHealthStatistics;
1024+
}
1025+
1026+
public void setPersistHealthStatistics(boolean persistHealthStatistics) {
1027+
this.persistHealthStatistics = persistHealthStatistics;
1028+
}
1029+
1030+
}

0 commit comments

Comments
 (0)