mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-16 07:10:48 +00:00
bug4469 added boat change tolerance to dto parameters
This commit is contained in:
1 parent
4d829cd089
commit
d2fe91fac9
2 files changed
+4
-5
No files matched your search
+2
-2
@@ -18,8 +18,8 @@ public class PairingListTemplateDTO implements Serializable {
|
||||
|
||||
public PairingListTemplateDTO() { }
|
||||
|
||||
public PairingListTemplateDTO(int competitorCount, int flightMultiplier) {
|
||||
this(0, 0, competitorCount, flightMultiplier, 0, null, 0.0, /* selected flight names */ null);
|
||||
public PairingListTemplateDTO(int competitorCount, int flightMultiplier, int tolerance) {
|
||||
this(0, 0, competitorCount, flightMultiplier, tolerance, null, 0.0, /* selected flight names */ null);
|
||||
}
|
||||
|
||||
public PairingListTemplateDTO(int competitorCount, int flightMultiplier, int[][] pairingListTemplate, double quality) {
|
||||
|
||||
+2
-3
@@ -120,7 +120,7 @@ public class PairingListCreationSetupDialog extends AbstractPairingListCreationS
|
||||
@Override
|
||||
protected PairingListTemplateDTO getResult() {
|
||||
PairingListTemplateDTO dto = new PairingListTemplateDTO(this.competitorCountTextBox.getValue(),
|
||||
this.flightMultiplierTextBox.getValue());
|
||||
this.flightMultiplierTextBox.getValue(), this.boatChangeFactorListBox.getSelectedIndex());
|
||||
if (Util.size(this.getCheckedSelectedCheckBoxes()) > 0) {
|
||||
String seriesName = Util.get(this.getCheckedSelectedCheckBoxes(), 0).getText();
|
||||
dto.setGroupCount(
|
||||
@@ -255,8 +255,7 @@ public class PairingListCreationSetupDialog extends AbstractPairingListCreationS
|
||||
|
||||
private void updateBoatChangeFactorSelection(final int fleetCount) {
|
||||
this.boatChangeFactorListBox.clear();
|
||||
IntStream.range(1, getCompetitorCountInput() / fleetCount)
|
||||
.forEach(i -> {
|
||||
IntStream.range(0, (getCompetitorCountInput() / fleetCount) + 1).forEach(i -> {
|
||||
this.boatChangeFactorListBox.addItem(String.valueOf(i));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user