Beispiel #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);
     }
 }
Beispiel #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);
     }
 }