private void AddNewGeneration(List<IDemographicCategoryGeneration> list, int occ, Range age, int employmentStatus, int mobility) { PowGeneration gen = new PowGeneration(); gen.Root = this.Root; gen.OccupationCategory = CreateRangeSet( occ ); gen.AgeCategoryRange = CreateRangeSet( age ); gen.EmploymentStatusCategory = CreateRangeSet( employmentStatus ); gen.Mobility = CreateRangeSet( mobility ); gen.ModeChoiceParameterSetIndex = this.ModeChoiceParameterSetIndex; gen.DemographicParameterSetIndex = GetDemographicIndex( age.Start, employmentStatus, mobility ); gen.AllAges = this.AgeCategoryRange; list.Add( gen ); }
private void AddNewGeneration(List <IDemographicCategoryGeneration> list, int occ, Range age, int employmentStatus, int mobility) { PowGeneration gen = new PowGeneration(); gen.Root = this.Root; gen.OccupationCategory = CreateRangeSet(occ); gen.AgeCategoryRange = CreateRangeSet(age); gen.EmploymentStatusCategory = CreateRangeSet(employmentStatus); gen.Mobility = CreateRangeSet(mobility); gen.ModeChoiceParameterSetIndex = this.ModeChoiceParameterSetIndex; gen.DemographicParameterSetIndex = GetDemographicIndex(age.Start, employmentStatus, mobility); gen.AllAges = this.AgeCategoryRange; list.Add(gen); }
private void AddNewGeneration(List <IDemographicCategoryGeneration> list, int occ, Range age, int employmentStatus, int mobility) { PowGeneration gen = new PowGeneration { Root = Root, OccupationCategory = CreateRangeSet(occ), AgeCategoryRange = CreateRangeSet(age), EmploymentStatusCategory = CreateRangeSet(employmentStatus), Mobility = CreateRangeSet(mobility), ModeChoiceParameterSetIndex = ModeChoiceParameterSetIndex, DemographicParameterSetIndex = GetDemographicIndex(age.Start, employmentStatus, mobility), AllAges = AgeCategoryRange }; list.Add(gen); }