Esempio n. 1
0
        /// <summary>
        /// </summary>
        /// <param name="evt"/>
        /// <param name="cm"/>
        /// <returns/>
        public bool RUN(Mozart.SeePlan.Simulation.ICalendarEvent evt, ICalendarEventManager cm)
        {
            //foreach (var eqp in AoFactory.Current.Equipments.Values)
            //    eqp.WakeUp();

            return(true);
        }
Esempio n. 2
0
        /// <summary>
        /// </summary>
        /// <param name="evt"/>
        /// <param name="cm"/>
        /// <returns/>
        public bool RUN(Mozart.SeePlan.Simulation.ICalendarEvent evt, ICalendarEventManager cm)
        {
            //double startMin = ModelContext.Current.StartTime.Minute;

            //if (SimHelper.firstFireAtOnHour && startMin != 30)
            //{
            //    int gap = cm.NowDT.Minute - ModelContext.Current.StartTime.Minute;

            //    if (startMin < 30)
            //        evt.Duration =  Time.FromMinutes(30 + startMin);
            //    else if(startMin > 30)
            //        evt.Duration = Time.FromMinutes(Math.Abs(gap));

            //    SimHelper.firstFireAtOnHour = false;

            //    return true;
            //}

            //evt.Duration = Time.FromMinutes(60);
            //SimHelper.firstFireAtOnHour = false;

            OutCollector.WriteStepWip();

            return(true);
        }
Esempio n. 3
0
 /// <summary>
 /// </summary>
 /// <param name="evt"/>
 /// <param name="cm"/>
 /// <returns/>
 public bool RUN(Mozart.SeePlan.Simulation.ICalendarEvent evt, ICalendarEventManager cm)
 {
     Console.WriteLine();
     return(true);
 }