// private constructor for cloning private cInfection(int IncubationPeriod, int InfectiousPeriod, int Year, int Week, cDisease Disease, cBackground Background, string InfectingAnimalID) { mvarIncubationPeriod = IncubationPeriod; mvarInfectiousPeriod = InfectiousPeriod; mvarYear = Year; mvarWeek = Week; mvarDisease = Disease; mvarBackground = Background; mvarInfectingAnimalID = InfectingAnimalID; mvarIsFatal = mvarDisease.GetAnimalDies(); // EER: set the infection history if (mvarIsFatal) { mvarNaturalImmunity = "Infected_died"; } else { mvarNaturalImmunity = "Infected_recovered"; } }
// ************************ Methods ********************************************** /// <summary> /// Add a disease to the disease list. The disease will be keyed by its name. If /// another disease in the list already has this name, an ArgumentException /// exception will be raised. If item is null, an ArgumentNullException exception /// is raised. /// </summary> /// <param name="item">The disease to add to the list.</param> public virtual void Add(cDisease item) { Values.Add(item.Name, item); }