// *********************** Constructor ******************************************* /// <summary> /// Initialize a disease list. /// </summary> /// <param name="ScrambleRandom">A random number generator to use if the list is to be scrambled</param> public cDiseaseList(cUniformRandom ScrambleRandom) { // create the list of values Values = new cIndexedHashTable(ScrambleRandom); //System.Diagnostics.Debug.WriteLine(""); //System.Diagnostics.Debug.WriteLine("cDiseaseList: cDiseaseList"); }
/// <summary> /// Internally rebuilds the list of animals. This function should be run on /// occasion for performance reasons. /// </summary> public void Rebuild() { // clone the current main list cIndexedHashTable NewValues = (cIndexedHashTable)Values.Clone(); // make the clone the main list Values = NewValues; }
// *********************** Constructor ******************************************* /// <summary> /// Initialize a supercell list. /// </summary> public cSuperCellList() { // create the list of values Values = new cIndexedHashTable(null); }
// *********************** Constructor ******************************************* /// <summary> /// Initialize an animal list. /// </summary> public cAnimalList(cUniformRandom ScrambleRandom) { // create the list of values Values = new cIndexedHashTable(ScrambleRandom); }