private FreewayData InitializeFreewayData() { FreewayData fwy = new FreewayData(); fwy.TPsegs = new List <List <SegmentData> >(); List <SegmentData> SegData; //------------ From HCM-CALC; eventually replace with call to method in HCM-CALC -----------------------// //time period zero MainlineOutputs newTimePeriodFreewayResults = new MainlineOutputs(); fwy.Results.Add(newTimePeriodFreewayResults); SegData = new List <SegmentData>(); //add first dummy segment SegData.Add(new SegmentData(SegmentType.Basic)); //add first real segment SegData.Add(new SegmentData(SegmentType.Basic)); SegData[1].isZero = true; //add last dummy segment; currently needed for oversaturated analysis SegData.Add(new SegmentData(SegmentType.Basic)); fwy.TPsegs.Add(SegData); //adding zero time period //time period 1 newTimePeriodFreewayResults = new MainlineOutputs(); fwy.Results.Add(newTimePeriodFreewayResults); SegData = new List <SegmentData>(); //add first dummy segment SegData.Add(new SegmentData(SegmentType.Basic)); //add first real segment SegData.Add(new SegmentData(SegmentType.Basic)); //add last dummy segment; currently needed for oversaturated analysis SegData.Add(new SegmentData(SegmentType.Basic)); fwy.TPsegs.Add(SegData); //adding first time period fwy.TotalTimePeriods = 1; fwy.TotalSegs = 1; //------------------------------------------------------------------------------------------// return(fwy); }
public MainlineOutputsPlan(int PlanID, MainlineOutputs Outputs, int TP) { _planID = PlanID; _outputs = Outputs; _tp = TP; }