예제 #1
0
 // *********************** 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");
 }
예제 #2
0
        /// <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);
 }
예제 #4
0
 // *********************** Constructor *******************************************
 /// <summary>
 ///		Initialize an animal list.
 /// </summary>
 public cAnimalList(cUniformRandom ScrambleRandom)
 {
     // create the list of values
     Values = new cIndexedHashTable(ScrambleRandom);
 }