Skip to content

Commit 4e412e6

Browse files
author
Jarkko Laitinen
committed
Created a default constructor for routingproblemsettingsupdaterequest. Values set in constructor reflect good default values for settings.
1 parent 06ca01e commit 4e412e6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

fi/cosky/sdk/RoutingProblemSettingsUpdateRequest.java

+11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ public class RoutingProblemSettingsUpdateRequest {
1515
private String AlgorithmTree;
1616
private String DateTimeFormatString;
1717

18+
/**
19+
* Default constructor with good values for settings. These
20+
* are also the ones that NFleet uses when settings
21+
* are not specified
22+
*/
23+
public RoutingProblemSettingsUpdateRequest() {
24+
this.DefaultVehicleSpeedFactor = 0.9;
25+
this.DefaultVehicleSpeedProfile = SpeedProfile.Max100Kmh;
26+
this.InsertionAggressiveness = 1;
27+
}
28+
1829
public double getDefaultVehicleSpeedFactor() {
1930
return DefaultVehicleSpeedFactor;
2031
}

0 commit comments

Comments
 (0)