Beispiel #1
0
 public EventUnloadStart(SimulationCore actualSimulation, double scheduledTime, Vehicle car) : base(actualSimulation, scheduledTime)
 {
     this.core = actualSimulation;
     this.time = scheduledTime;
     this.car  = car;
     this.core.carAtUnloader = car;
 }
Beispiel #2
0
 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);
         }
     }
 }
Beispiel #5
0
 // plus do parametrov Vehicle
 public Event(SimulationCore actualSimulationCore, double scheduledTime)
 {
     this.mySimulation  = actualSimulationCore;
     this.timeExecution = scheduledTime;
 }