public Section(Line line,string lineid,string sectionId,string sectionName,string direction,int startMileage, int endMileage,int maxSpeed,int minSpeed ) { this.line = line; this.lineid = lineid; this.sectionId = sectionId; this.sectionName = sectionName; this.direction = direction; this.startMileage = startMileage; this.endMileage = endMileage; this.maxSpeed = maxSpeed; this.minSpeed = minSpeed; LoadSectionTravelTimeWeight(); hisTravelTime = new HisTravelTimeManager(this.sectionId); }
public Section(Line line,string lineid,string sectionId,string sectionName,string direction,int startMileage, int endMileage,int maxSpeed,int minSpeed ,int unit,int threshold ) { this.line = line; this.lineid = lineid; this.sectionId = sectionId; this.sectionName = sectionName; this.direction = direction; this.startMileage = startMileage; this.endMileage = endMileage; this.maxSpeed = maxSpeed; this.minSpeed = minSpeed; this.unit = unit; this.threshold = threshold; #if !DEBUG LoadSectionTravelTimeWeight(); hisTravelTime = new HisTravelTimeManager(this.sectionId); #endif }