public static List<Youngster> YoungsterList(CoreAMS.Enums.HealthState healthState, int count, string locationProbabilitiesFile) { List<Youngster> youngsters = new List<Youngster>(); for (int i = 0; i < count; ++i) youngsters.Add(new Youngster(GlobalAgentDescriptorTable.GetNewId, healthState, locationProbabilitiesFile)); return youngsters; }
public static List<Adult> AdultList(CoreAMS.Enums.HealthState healthState, int count, string locationProbabilitiesFile) { List<Adult> adults = new List<Adult>(); for (int i = 0; i < count; ++i) adults.Add(new Adult(GlobalAgentDescriptorTable.GetNewId, healthState, locationProbabilitiesFile)); return adults; }
public static List<Child> ChildList(CoreAMS.Enums.HealthState healthState, int count, string locationProbabilitiesFile) { List<Child> childrens = new List<Child>(); for (int i = 0; i < count; ++i) childrens.Add(new Child(GlobalAgentDescriptorTable.GetNewId, healthState, locationProbabilitiesFile)); return childrens; }
public Child(int Id, CoreAMS.Enums.HealthState healthState, string locationProbabilitiesDir) : base(Id, healthState, locationProbabilitiesDir + "/LPChild.csv") { //int st = 10; //int et = 13; //Hospital h1 = new Hospital(0.6, 1000.0); //var key = new LocationProbabilitiesKey() { // startTime = st, // endTime = et, // container = h1 //}; //double pr = locationProbabilities[key]; }
public Youngster(int Id, CoreAMS.Enums.HealthState healthState, string locationProbabilitiesDir) : base(Id, healthState, locationProbabilitiesDir + "/Youngster.csv") { }
public Adult(int Id, CoreAMS.Enums.HealthState healthState, string locationProbabilitiesDir) : base(Id, healthState, locationProbabilitiesDir + "/Adult.csv") { }