Пример #1
0
        private void AddNewGeneration(List <IDemographicCategoryGeneration> list, int occ, Range age, int employmentStatus)
        {
            PoRPoWGeneration gen = new PoRPoWGeneration();

            gen.Root                        = this.Root;
            gen.LoadData                    = false;
            gen.OccupationCategory          = CreateRangeSet(occ);
            gen.AgeCategoryRange            = CreateRangeSet(age);
            gen.EmploymentStatusCategory    = CreateRangeSet(employmentStatus);
            gen.ModeChoiceParameterSetIndex = this.ModeChoiceParameterSetIndex;
            gen.Mobility                    = new RangeSet(new List <Range>()
            {
                new Range()
                {
                    Start = 0, Stop = 0
                }
            });
            gen.ExternalJobs    = this.ExternalJobs;
            gen.ExternalRates   = this.WorkExternal;
            gen.WorkIntrazonal  = this.WorkIntraZonal;
            gen.WorkAtHomeRates = this.WorkAtHomeRates;
            gen.AllAges         = new RangeSet(new List <Range>()
            {
                new Range()
                {
                    Start = 2, Stop = 5
                }
            });
            gen.GenerationOutputFileName = this.GenerationOutputFileName;
            gen.Name = this.Name + " - " + gen.ToString();
            gen.AttractionFileName = AttractionFileName;
            list.Add(gen);
        }
Пример #2
0
        private void AddNewGeneration(List <IDemographicCategoryGeneration> list, int occ, Range age, int employmentStatus)
        {
            var gen = new PoRPoWGeneration
            {
                Root                        = Root,
                LoadData                    = false,
                OccupationCategory          = CreateRangeSet(occ),
                AgeCategoryRange            = CreateRangeSet(age),
                EmploymentStatusCategory    = CreateRangeSet(employmentStatus),
                ModeChoiceParameterSetIndex = ModeChoiceParameterSetIndex,
                Mobility                    = new RangeSet(new List <Range> {
                    new Range(0, 0)
                }),
                ExternalJobs    = ExternalJobs,
                ExternalRates   = WorkExternal,
                WorkIntrazonal  = WorkIntraZonal,
                WorkAtHomeRates = WorkAtHomeRates,
                AllAges         = new RangeSet(new List <Range> {
                    new Range(2, 5)
                }),
                GenerationOutputFileName = GenerationOutputFileName
            };

            gen.Name = Name + " - " + gen;
            gen.AttractionFileName = AttractionFileName;
            list.Add(gen);
        }