示例#1
0
文件: Citizen.cs 项目: habahbah/NIDUC
 public Citizen(IPopulation population, IInsuranceSocialSystem iss)
 {
     State = CitizenState.Premature;
     Age = new Age();
     DeathAge = RollDeathAge();
     Laziness = StatisticHelper.RollLaziness();
     Population = population;
     ISS = iss;
 }
示例#2
0
 public SimulationManager(int SimTime, frmHistoryTable historyForm)
 {
     iss = new InsuranceSocialSystem();
     Population = new Population(this, iss);
     SimulationTime = SimTime*12;
     WorldAge = new Age();
     HistoryList = new HistoryList();
     HistoryForm = historyForm;
     iss.TaxInterestRate = 0.1;
     ConstSimulation = false;
     Paused = false;
 }
示例#3
0
        public Population(ISimulationManager man, IInsuranceSocialSystem i)
        {
            Citizens = new List<Citizen>();
            LivingCitizens = new List<Citizen>();
            DeadCitizens = new List<Citizen>();

            Manager = man;
            iss = i;

            AgeOfMajority = new Age(18, 0);
            StandardRetirementAge = new Age(65, 0);
            AverageAgeOfDying = new Age(85, 0);
            BornRate = 1;
        }
示例#4
0
 public static Age GetRemaningTimeLife(Age Age)
 {
     double years = RemaningLifeTime.findValue(Age.Years);
     double months = (years % ((int)years)) * 12;
     return new Age((int)years,(int)months);
 }