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