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 implements RoutingProperties { /** * Multiplier of how much more travel time is tolerated for alternative routing. */ private double acceptableAdditionalMultiplierRegular = 1.10; /** * Multiplier of accepted additional travel time for users that wish more physical activity. */ private double acceptableAdditionalMultiplierPrefersPhysical = 1.3; /** * Minimum of accepted additional travel time for regular users which is always accepted. */ private Integer minimumAcceptedAdditionalSecondsRegular = 5 * 60; /** * Minimum of accepted additional travel time for users that wish more physical activity. */ private Integer minimumAcceptedAdditionalSecondsPrefersPhysicalActivity = 5 * 60; }