|  |  |  | 
|---|
|  |  |  | private Device device; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 扩展字段 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Object extend; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 设置小车状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public void setProtocolStatus(Integer status) { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return currentLoc.getLocNo(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 是否处于空闲待命状态 | 
|---|
|  |  |  | public Boolean isIdle() { | 
|---|
|  |  |  | if (this.deviceStatus == null | 
|---|
|  |  |  | || this.pakMk == null | 
|---|
|  |  |  | || this.errorCode == null | 
|---|
|  |  |  | || this.protocolStatus == null | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | boolean res = this.deviceStatus.equals(ShuttleDeviceStatusType.IDLE) | 
|---|
|  |  |  | && this.pakMk | 
|---|
|  |  |  | && !this.errorCode.equals("0") | 
|---|
|  |  |  | && this.getTaskNo() == 0 | 
|---|
|  |  |  | && this.protocolStatus.intValue() == ShuttleProtocolStatusType.IDLE.id | 
|---|
|  |  |  | ; | 
|---|
|  |  |  | return res; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|