コード例 #1
0
ファイル: BuildPoWGeneration.cs プロジェクト: Cocotus/XTMF
 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 );
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: BuildPoWGeneration.cs プロジェクト: lunaxi7/XTMF
        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);
        }