示例#1
0
        public override void SetStochasticMode(StochasticMode mode)
        {
            switch (mode)
            {
            case StochasticMode.Full:
                m_tsd.SetCDFInterval(0.0, 1.0);
                break;

            case StochasticMode.Schedule:
                m_tsd.SetCDFInterval(0.5, 0.5);
                break;

            default:
                throw new ApplicationException("Unknown stochastic mode " + mode);
#pragma warning disable 0162 // Unreachable Code Detected
                // Pragma is because if everything is okay, this code *will* be unreachable.
                break;
#pragma warning disable 0162
            }
        }
示例#2
0
 /// <summary>
 /// Sets the stochastic mode of this actor.
 /// </summary>
 /// <param name="mode">The stochastic mode.</param>
 public abstract void SetStochasticMode(StochasticMode mode);