public Citizen(IPopulation population, IInsuranceSocialSystem iss) { State = CitizenState.Premature; Age = new Age(); DeathAge = RollDeathAge(); Laziness = StatisticHelper.RollLaziness(); Population = population; ISS = iss; }
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; }
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; }
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); }