25 lines
933 B
Java
25 lines
933 B
Java
package SuMoC.backend.routing.config;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
/**
|
|
* These are the routing properties for alternatives that are calculated as a resonse to an uploaded trip.
|
|
* We separate these from properties for OnCall (Explicitly Requested by user) routing properties since
|
|
* the assumption is that "unasked for" alternatives have less tolerance for additional travel time etc.
|
|
*/
|
|
@ConfigurationProperties(prefix = "routing.adhoc")
|
|
@Getter
|
|
@Setter
|
|
public class AdHocRoutingProperties extends RoutingProperties {
|
|
|
|
public AdHocRoutingProperties() {
|
|
super();
|
|
setAcceptableAdditionalMultiplierRegular(2.0);
|
|
setAcceptableAdditionalMultiplierPrefersPhysical(2.0);
|
|
setMinimumAcceptedAdditionalSecondsRegular(5 * 60);
|
|
setMinimumAcceptedAdditionalSecondsPrefersPhysicalActivity(5 * 60);
|
|
}
|
|
}
|