Example #1
0
        public AvgSpeedBucketCollection(DateTime startTime, DateTime endTime, List <Cycle> CycleCollection, int binSize, int minspeedfilter, int movementdelay)
        {
            DateTime dt = startTime;

            while (dt.AddMinutes(binSize) < endTime)
            {
                AvgSpeedBucket Avg = new AvgSpeedBucket(dt, dt.AddMinutes(binSize), CycleCollection, binSize, minspeedfilter, movementdelay);
                Items.Add(Avg);
                dt = dt.AddMinutes(binSize);
            }
        }
Example #2
0
        public AvgSpeedBucketCollection(DateTime startTime, DateTime endTime, int binSize, int movementdelay,
                                        List <CycleSpeed> cycles)
        {
            var dt = startTime;

            while (dt.AddMinutes(binSize) <= endTime)
            {
                var avg = new AvgSpeedBucket(dt, dt.AddMinutes(binSize), binSize, movementdelay,
                                             cycles);
                AvgSpeedBuckets.Add(avg);
                dt = dt.AddMinutes(binSize);
            }
        }
Example #3
0
 public void AddItem(AvgSpeedBucket average)
 {
     Items.Add(average);
 }