private void AddNewGeneration(List<IDemographicCategoryGeneration> list, Range age, int employmentStatus, int mobility) { PoRPoSGeneration gen = new PoRPoSGeneration(); gen.Root = this.Root; gen.LoadData = false; gen.UsesPlanningDistricts = this.UsePlanningDistricts; gen.OccupationCategory = this.OccupationCategory; gen.AgeCategoryRange = CreateRangeSet( age ); gen.EmploymentStatusCategory = CreateRangeSet( employmentStatus ); gen.Mobility = CreateRangeSet( mobility ); gen.ModeChoiceParameterSetIndex = this.ModeChoiceParameterSetIndex; gen.DemographicParameterSetIndex = GetDemographicIndex( age.Start, employmentStatus, mobility ); gen.TimeOfDayRates = this.TimeOfDayRates; gen.DailyRates = this.DailyRates; gen.GenerationOutputFileName = this.GenerationOutputFileName; list.Add( gen ); }
private void AddNewGeneration(List <IDemographicCategoryGeneration> list, Range age, int employmentStatus, int mobility) { PoRPoSGeneration gen = new PoRPoSGeneration(); gen.Root = this.Root; gen.LoadData = false; gen.UsesPlanningDistricts = this.UsePlanningDistricts; gen.OccupationCategory = this.OccupationCategory; gen.AgeCategoryRange = CreateRangeSet(age); gen.EmploymentStatusCategory = CreateRangeSet(employmentStatus); gen.Mobility = CreateRangeSet(mobility); gen.ModeChoiceParameterSetIndex = this.ModeChoiceParameterSetIndex; gen.DemographicParameterSetIndex = GetDemographicIndex(age.Start, employmentStatus, mobility); gen.TimeOfDayRates = this.TimeOfDayRates; gen.DailyRates = this.DailyRates; gen.GenerationOutputFileName = this.GenerationOutputFileName; list.Add(gen); }