public EventUnloadStart(SimulationCore actualSimulation, double scheduledTime, Vehicle car) : base(actualSimulation, scheduledTime) { this.core = actualSimulation; this.time = scheduledTime; this.car = car; this.core.carAtUnloader = car; }
public EventUnloadFinish(SimulationCore actualSimulation, double scheduledTime, Vehicle car) : base(actualSimulation, scheduledTime) { this.core = actualSimulation; this.time = scheduledTime; this.car = car; this.lengthOfWay = Constants.BCLength; this.core.carAtUnloader = null; lock (Constants.gateF) { this.core.getCarsBC().Add(car); } }
public EventArrivalToC(SimulationCore actualSimulation, double scheduledTime, Vehicle car) : base(actualSimulation, scheduledTime) { this.core = actualSimulation; this.time = scheduledTime; this.car = car; this.lengthOfWay = Constants.CALength; lock (Constants.gateF) { this.core.removeFromBC(car); this.core.getCarsCA().Add(car); } }
public EventArrivalToA(SimulationCore actualSimulation, double scheduledTime, Vehicle car) : base(actualSimulation, scheduledTime) { this.core = actualSimulation; this.time = scheduledTime; this.car = car; lock (Constants.gateF) { if (this.core.getCarsCA().Contains(car)) { this.core.removeFromCA(car); } } }
// plus do parametrov Vehicle public Event(SimulationCore actualSimulationCore, double scheduledTime) { this.mySimulation = actualSimulationCore; this.timeExecution = scheduledTime; }