|  |  | 
 |  |  |     /** | 
 |  |  |      * 作业标记 | 
 |  |  |      */ | 
 |  |  |     private Boolean pakMk = true; | 
 |  |  |     private Boolean pakMk = false; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 独占令牌 | 
 |  |  |      * 未被任务占据,令牌为0 | 
 |  |  |      * 被任务占据,将任务号赋值给令牌 | 
 |  |  |      */ | 
 |  |  |     private Integer token = 0; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 任务命令 | 
 |  |  |      */ | 
 |  |  |     private LiftAssignCommand assignCommand; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 指令下发时间 | 
 |  |  |      */ | 
 |  |  |     private Long sendTime = 0L; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 设置提升机状态 | 
 |  |  | 
 |  |  |  | 
 |  |  |     // 是否处于空闲待命状态 | 
 |  |  |     public Boolean isIdle(Short taskNo) { | 
 |  |  |         if(this.taskNo == null | 
 |  |  |                 || this.busy == null | 
 |  |  |         if(this.busy == null | 
 |  |  |                 || this.model == null | 
 |  |  |                 || this.deviceError == null | 
 |  |  |                 || this.pakMk == null | 
 |  |  |                 || this.token == null | 
 |  |  |         ){ | 
 |  |  |             return false; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         boolean res = (this.taskNo == 0 || this.taskNo.intValue() == taskNo.intValue()) | 
 |  |  |                 && !this.busy | 
 |  |  |         boolean res = | 
 |  |  | //                (this.taskNo.equals(this.completeTaskNo) || this.taskNo.intValue() == taskNo.intValue()) | 
 |  |  |                 !this.busy | 
 |  |  |                 && this.model | 
 |  |  |                 && this.pakMk.equals(true) | 
 |  |  |                 && !this.pakMk | 
 |  |  |                 && !this.deviceError | 
 |  |  |                 && this.protocolStatusType.equals(LiftProtocolStatusType.IDLE) | 
 |  |  |                 ; | 
 |  |  |         return res; | 
 |  |  |     } | 
 |  |  | 
 |  |  |                 || this.model == null | 
 |  |  |                 || this.deviceError == null | 
 |  |  |                 || this.pakMk == null | 
 |  |  |                 || this.token == null | 
 |  |  |         ){ | 
 |  |  |             return false; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         boolean res = this.taskNo == 0 | 
 |  |  |                 && !this.busy | 
 |  |  |         boolean res = | 
 |  |  | //                this.taskNo.equals(this.completeTaskNo) | 
 |  |  |                 !this.busy | 
 |  |  |                 && this.model | 
 |  |  |                 && this.pakMk.equals(true) | 
 |  |  |                 && !this.pakMk | 
 |  |  |                 && !this.deviceError | 
 |  |  |                 && this.token == 0 | 
 |  |  |                 && this.protocolStatusType.equals(LiftProtocolStatusType.IDLE) | 
 |  |  |                 ; | 
 |  |  |         return res; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     // 是否处于空闲待命状态,不判断任务号 | 
 |  |  |     public Boolean isIdleNoTask() { | 
 |  |  |         if(this.taskNo == null | 
 |  |  |                 || this.busy == null | 
 |  |  |         if(this.busy == null | 
 |  |  |                 || this.model == null | 
 |  |  |                 || this.deviceError == null | 
 |  |  |                 || this.pakMk == null | 
 |  |  | 
 |  |  |  | 
 |  |  |         boolean res = !this.busy | 
 |  |  |                 && this.model | 
 |  |  |                 && this.pakMk.equals(true) | 
 |  |  |                 && !this.pakMk | 
 |  |  |                 && !this.deviceError | 
 |  |  |                 ; | 
 |  |  |         return res; |