public void SetState(EventCalendar eventCalendarIn, SimulationManager managerIn) { eventCalendarIn.Events.Clear(); foreach (EventState eventState in this.events) { eventCalendarIn.ScheduleEvent(eventState.GetEvent(managerIn)); } }
public string path; //Onhand inventory path public SimulationManager() : base("SimulationManager", null) { this.algorithms = new AlgorithmCollection(); this.eventCalendar = new EventCalendar(this); this.layoutManager = new LayoutManager("LayoutManager", this); this.jobManager = new JobManager("JobManager", this); }
public void GetState(EventCalendar eventCalendarIn) { foreach (EventList eventList in eventCalendarIn.Events.Values) { foreach (Event @event in eventList) { this.events.Add(@event.GetEventState()); } } }