public AutoSimulator(DateTime startTime, DateTime endTime, DateTime warmUp) { _fel = new FutureEventList {EndTime = endTime}; WarmUpTime = warmUp; _fel.AddNewEvent(new FutureEvent(Events.Arrival, startTime)); StartTime = startTime; // 8:00 AM EndTime = endTime; // 4:00 PM _entranceStation = new Entrance {Name = "Entrance"}; _platformA = new Platform {Name = "A"}; _platformB = new Platform {Name = "B"}; _platformC = new Platform {Name = "C"}; _inspectorStation = new Inspector(); _robot = new ARobot(); var rnd = new Random(); int numb = rnd.Next(1, 200); for (int i = 0; i < numb; i++) { RandomEngine.GetNormal(); } }
public void MoveIt(Platform source, Inspector destination, int p) { LastActivity = "C->Ins"; Box box = source.ServiceBox; source.ServiceBox = null; source.Status = StationStatus.Empty; if (p == 0) { destination.PushBoxToQueue(box); } else if (p == 1) { destination.Inspector1Box = box; } else if (p == 2) { destination.Inspector2Box = box; } }