public void MoveIt(Entrance source, Platform destination) { // Move one Box from Entrance Station and put it on StationA LastActivity = "EQ->A"; // One Possibility! Box box = source.Dequeue(); destination.ServiceBox = box; }
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(); } }