Esempio n. 1
0
 public void GenerateConstant(MetricPath path, double speed)
 {
     segmentLinearSpeedProfileList = new List <SegmentLinearSpeedProfile>();
     foreach (MapSegment mapSegment in path.MapSegmentList)
     {
         SegmentLinearSpeedProfile segmentLinearSpeedProfile = new SegmentLinearSpeedProfile();
         segmentLinearSpeedProfile.GenerateConstant(mapSegment, speed, numberOfLines);
         segmentLinearSpeedProfileList.Add(segmentLinearSpeedProfile);
     }
 }
Esempio n. 2
0
 public void Generate(MetricPath path, List <double> speedList)
 {
     segmentLinearSpeedProfileList = new List <SegmentLinearSpeedProfile>();
     foreach (MapSegment mapSegment in path.MapSegmentList)
     {
         SegmentLinearSpeedProfile segmentLinearSpeedProfile = new SegmentLinearSpeedProfile();
         segmentLinearSpeedProfile.Generate(speedList, numberOfLines);
         segmentLinearSpeedProfileList.Add(segmentLinearSpeedProfile);
     }
 }