Example #1
0
        public Elevator()
        {
            this.CurrentIndex = 0;
            CallOriginFloor   = new ConcurrentQueue <int>();

            Floors      = new List <Floor>();
            this.people = new List <Personel>();
            cl          = new Shared.Caller(Call);
            this.State  = ELEVATOR_STATE.WAITING_FOR_CALL;

            this.thread = new Thread(new ThreadStart(LifeCycle));
            this.thread.Start();
        }
Example #2
0
 public Personel(ACCESS_LEVEL level, Caller call) : this(level)
 {
     this.AccessLevel = level;
     this.callMethod  = call;
 }