Example #1
0
        private static FormulaOneAnalyser FormulaOneAnalyser()
        {
            var driverConfiguration = new DriverAnalysisCriteria()
            {
                AllowedStartTime             = TimeSpan.Zero,
                AllowedEndTime               = TimeSpan.Zero,
                AllowedMaxSpeed              = 200m,
                RatingForExceedingSpeedLimit = 1.0m,
                IsPenaltyApplicable          = true,
                Penalty = 0.5m
            };

            return(new FormulaOneAnalyser(driverConfiguration));
        }
Example #2
0
        private static GetawayDriverAnalyser GetawayDriverAnalyser()
        {
            var driverAnalysisCriteria = new DriverAnalysisCriteria()
            {
                AllowedStartTime             = new TimeSpan(13, 0, 0),
                AllowedEndTime               = new TimeSpan(14, 0, 0),
                AllowedMaxSpeed              = 80m,
                RatingForExceedingSpeedLimit = 1.0m,
                IsPenaltyApplicable          = true,
                Penalty = 0.5m
            };

            return(new GetawayDriverAnalyser(driverAnalysisCriteria));
        }
Example #3
0
        private static DeliveryDriverAnalyser DeliveryDriverAnalyser()
        {
            var driverConfiguration = new DriverAnalysisCriteria()
            {
                AllowedStartTime             = new TimeSpan(9, 0, 0),
                AllowedEndTime               = new TimeSpan(17, 0, 0),
                AllowedMaxSpeed              = 30m,
                RatingForExceedingSpeedLimit = 0.0m,
                IsPenaltyApplicable          = true,
                Penalty = 0.5m
            };

            return(new DeliveryDriverAnalyser(driverConfiguration));
        }