/// <summary> /// Black Box Model. /// Gets the time required to unload the ore, reflecting the fact that /// the time is not constant and may vary depending on the geometry of the rocks inside the /// bin the robot carries ore in /// </summary> /// <returns>Time required to unload the ore</returns> public int GetUnloadTime() { return(ThreadSafeRandom.NextNormalInt(AvgUnloadTime, StdDevUnloadTime)); }
/// <summary> /// Black or white box model - black b/c it doesn't really explain why it takes so long, but /// white in that it explains that different mining bits can produce different speeds. /// /// Returns the time it takes to mine enough ore to fill the oreCapacity, based on a single unit /// of ore requiring AvgMiningTime seconds with a standard deviation of StdDevMiningTime /// </summary> /// <returns>Time required to mine all ore</returns> public int getMiningTime() { int time = ThreadSafeRandom.NextNormalInt(AvgMiningTime * oreCapacity, StdDevMiningTime * oreCapacity); return(time); }