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