|  |  |  | 
|---|
|  |  |  | // 是否处于空闲待命状态 | 
|---|
|  |  |  | public Boolean isIdle() { | 
|---|
|  |  |  | boolean res = this.free == ShuttleStatusType.IDLE.id | 
|---|
|  |  |  | && this.pakMk.equals(true) | 
|---|
|  |  |  | && !this.pakMk | 
|---|
|  |  |  | && this.errState == 0 | 
|---|
|  |  |  | && this.taskNo == 0 | 
|---|
|  |  |  | && this.protocolStatus == ShuttleProtocolStatusType.IDLE.id | 
|---|
|  |  |  | 
|---|
|  |  |  | // 是否处于空闲待命状态,传入的taskNo和当前taskNo相同时允许放行 | 
|---|
|  |  |  | public Boolean isIdle(int taskNo) { | 
|---|
|  |  |  | boolean res = this.free == ShuttleStatusType.IDLE.id | 
|---|
|  |  |  | && this.pakMk.equals(true) | 
|---|
|  |  |  | && !this.pakMk | 
|---|
|  |  |  | && this.errState == 0 | 
|---|
|  |  |  | && (this.taskNo == 0 || this.taskNo == taskNo) | 
|---|
|  |  |  | && this.protocolStatus.intValue() == ShuttleProtocolStatusType.IDLE.id | 
|---|
|  |  |  | 
|---|
|  |  |  | // 是否处于空闲待命状态 | 
|---|
|  |  |  | public Boolean isIdleNoCharge() { | 
|---|
|  |  |  | boolean res = this.free == ShuttleStatusType.IDLE.id | 
|---|
|  |  |  | && this.pakMk.equals(true) | 
|---|
|  |  |  | && !this.pakMk | 
|---|
|  |  |  | && this.errState == 0 | 
|---|
|  |  |  | && this.taskNo == 0 | 
|---|
|  |  |  | && this.protocolStatus == ShuttleProtocolStatusType.IDLE.id | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | boolean res = this.free == ShuttleStatusType.IDLE.id | 
|---|
|  |  |  | && this.pakMk | 
|---|
|  |  |  | && !this.pakMk | 
|---|
|  |  |  | && this.errState == 0 | 
|---|
|  |  |  | && this.taskNo == 0 | 
|---|
|  |  |  | && this.protocolStatusType.id == ShuttleProtocolStatusType.IDLE.id | 
|---|