Exemplo n.º 1
0
 public Workshop(Random m, CarService c, byte nM, Statistics s)
 {
     st            = s;
     rnd           = m;
     cs            = c;
     queueWs       = new List <Request>();
     requestInWork = new List <Request>();
     masterInWs    = new List <Master>();
     readyMasters  = numMasters = nM;
     for (int i = 0; i < nM; i++)
     {
         masterInWs.Add(new Master(st));
     }
 }
Exemplo n.º 2
0
 public EngineService(Random m, CarService cs, Statistics s, byte c = 1) : base(m, cs, c, s)
 {
 }
Exemplo n.º 3
0
 public GearboxService(Random m, CarService cs, Statistics s, byte c = 1) : base(m, cs, c, s)
 {
 }
Exemplo n.º 4
0
 public BodyShops(Random m, CarService cs, Statistics s, byte c = 1) : base(m, cs, c, s)
 {
 }
Exemplo n.º 5
0
 public TechInspection(Random m, CarService cs, Statistics s, byte c = 1) : base(m, cs, c, s)
 {
 }
Exemplo n.º 6
0
 public CarWorld(Model m, CarService cs)
 {
     modelObj   = m;
     serviceObj = cs;
 }
Exemplo n.º 7
0
 public void create_objects()
 {
     cs = new CarService(rng, numMasters, st);
     cw = new CarWorld(this, cs);
     set_times(0, 0, 0, 4 * 24 * 60);
 }