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); }
public static HourlyModifierCollection GetUniqueInstance() { if (uniqueInstance == null) { uniqueInstance = new HourlyModifierCollection(); } return(uniqueInstance); }
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()); }