Exemple #1
0
        /// <summary>
        /// Schedules a <see cref="StopSimulation"/> DesTask at some time
        /// in the future.
        /// </summary>
        /// <remarks>
        /// <para>
        /// This is a convenience method for stopping a running
        /// <see cref="Simulation"/>.  All it does is the following
        /// </para>
        /// <para><code>
        /// DesTask DesTask = new StopSimulation(sim);
        /// task.Activate(null, relTime);</code></para>
        /// </remarks>
        /// <param name="sim">
        /// The <see cref="Simulation"/> under which the DesTask will run.
        /// </param>
        /// <param name="relTime">
        /// The time, relative to the current simulation time, when the
        /// DesTask should run.
        /// </param>
        public static void Stop(Simulation sim, ulong relTime)
        {
            DesTask desTask = new StopSimulation(sim);

            desTask.Activate(null, relTime);
        }
Exemple #2
0
        /// <summary>
        /// Schedules a <see cref="StopSimulation"/> task at some time
        /// in the future.
        /// </summary>
        /// <remarks>
        /// <para>
        /// This is a convenience method for stopping a running
        /// <see cref="Simulation"/>.  All it does is the following
        /// </para>
        /// <para><code>
        /// Task task = new StopSimulation(sim);
        /// task.Activate(null, relTime);</code></para>
        /// </remarks>
        /// <param name="sim">
        /// The <see cref="Simulation"/> under which the task will run.
        /// </param>
        /// <param name="relTime">
        /// The time, relative to the current simulation time, when the
        /// task should run.
        /// </param>
        public static void Stop(Simulation sim, long relTime)
        {
            Task task = new StopSimulation(sim);

            task.Activate(null, relTime);
        }