예제 #1
0
        Boolean _switch;                        //如果为true,那么切换到下一位患者(用于模拟过程)

        /*      对象:构造与析构方法      */

        //构造方法(4个参数)
        public Device(String id, String name, DeviceDepartment department, String other)
        {
            SetId(id);
            SetName(name);
            SetDepartment(department);
            SetOther(other);
            _patientNow  = null;
            _patientWait = new SequentialQueue <Patient>(128);
            _workTime    = 0;
            SetSwitchTime(0);
            SetSwitch(true);
        }
예제 #2
0
 public void SetDeviceDepartment(DeviceDepartment deviceDepartment = null)
 {
     _deviceDepartment = deviceDepartment;
 }