Beispiel #1
0
        public SquareSupervisorController(Model model, GroupClientController groupClientController)
        {
            threadSMSemaphore = new Semaphore(2, 4);
            threadCMSemaphore = new Semaphore(2, 4);
            threadECSemaphore = new Semaphore(2, 4);

            this.model = model;
            this.groupClientController = groupClientController;
            CreateThread();
        }
 public DinnerRoomController(Model model, Form1 form)
 {
     this.model                 = model;
     this.form                  = form;
     groupClientController      = new GroupClientController();
     maitreHotelController      = new MaitreHotelController(model, form);
     waiterController           = new WaiterController(model, groupClientController);
     squareSupervisorController = new SquareSupervisorController(model, groupClientController);
     scenarioController         = new ScenarioController(model);
     kitchenController          = new KitchenController(model);
 }
Beispiel #3
0
 public WaiterController(Model model, GroupClientController groupClientController)
 {
     this.model = model;
     this.groupClientController = groupClientController;
     CreateThread();
 }