/// <summary> /// Construct a new background object of the approriate type /// </summary> /// <param name="Rnd">The random number generator for the background</param> /// <param name="BackgroundName">The name of the background</param> /// <param name="KeepAllAnimals">A boolean value that indicates whether or not the background should retain a list of all animals</param> /// <param name="AnimalYears">A list of years</param> /// <param name="Diseases">A list of diseases in the background</param> /// <returns>A new background object ofthe approriate type</returns> protected override cBackground GetNewBackground(cUniformRandom Rnd, string BackgroundName, bool KeepAllAnimals, cYearList AnimalYears, cDiseaseList Diseases) { return(new cRaccoonBackground(Rnd, BackgroundName, KeepAllAnimals, AnimalYears, Diseases)); }
/// <summary> /// Initialize the background, passing a list of years and a seed for all /// random number generators in the model. This is an internal constructor /// and may only be used by classes within the Rabies_Model_Core namespace. /// </summary> /// <param name="Rnd">The random number generator to be used by the background</param> /// <param name="Name"> /// The name to assign to this background. An ArgumentException is raised if /// Name is zero length. /// </param> /// <param name="KeepAllAnimals"> /// A flag indicating whether a record of all animals should be kept during /// a run. /// </param> /// <param name="YList"> /// The list of years. An ArgumentException exception is raised if YList is empty. /// </param> /// <param name="DList"> /// A list of diseases that will affect the animals in this background. /// </param> public cFoxBackground(cUniformRandom Rnd, string Name, bool KeepAllAnimals, cYearList YList, cDiseaseList DList) : base(Rnd, Name, KeepAllAnimals, YList, DList) { InitValues(); }