Beispiel #1
0
 public static ElevatorsManager GetInstance()
 {
     if (_manager == null)
     {
         _manager = new ElevatorsManager();
     }
     return(_manager);
 }
Beispiel #2
0
 public ElevatorController(ElevatorsManager manager)
 {
     _manager  = manager;
     _requests = new List <Request>();
     _thread   = new Thread(Run);
     Elev      = new Elevator();
     _lock     = new object();
 }
Beispiel #3
0
 public ElevatorController(ElevatorsManager manager, int id) : this(manager)
 {
     Identifier = id;
 }
Beispiel #4
0
 public FloorButton(ElevatorsManager manager, int id)
 {
     _manager   = manager;
     Identifier = id;
 }