예제 #1
0
        internal HourlyModifierCollection GetHourlyModifierCollection()
        {
            mLog.Debug("inside sim manager getting a collecton of Hourly modifiers");
            HourlyModifierCollection myHourlyModifiers = HourlyModifierCollection.GetUniqueInstance();

            mLog.Debug("done getting the collection current Count is " + myHourlyModifiers.Count.ToString());
            return(myHourlyModifiers);
        }
예제 #2
0
 public static HourlyModifierCollection GetUniqueInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new HourlyModifierCollection();
     }
     return(uniqueInstance);
 }
예제 #3
0
 public SimulatonManager()
 {
     mLog.Debug("making new animal manager ");
     mAnimalManager = new AnimalManager();
     mLog.Debug("getting the hourly manager collection");
     myHourlyModifiers           = HourlyModifierCollection.GetUniqueInstance();
     myDailyModifiers            = DailyModiferCollection.GetUniqueInstance();
     mElapsedTimeBetweenTimeStep = 0;
     mLog.Debug("back in sim manager with a modifier Count of " + myHourlyModifiers.Count.ToString());
 }