package SuMoC.backend.regulartrip.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Data @Component @ConfigurationProperties(prefix = "regulartripdetection") public class RegularTripDetectionProperties { // TODO at end check if this is really right place for these vals /** * Minimum number of trips a user must have made between the same start and end locations * for those trips to be considered regular. */ private Integer minTripsForRegularity = 2; /** * Time window in days to look back for detecting regular trips. */ private Integer detectionTimeWindowDays = 40; /** * Maximum time difference in minutes between trips to be considered the same regular trip. */ private Integer timeWindowSeconds = 90 * 60; /** * Number of times the iterative algorithm is run on randomly shuffled trip lists to pick best results. */ private Integer iterativeShuffleAmounts = 5; private String detectionAlgorithm = "iterative"; }