| | |
| | | SITE_AUTO_RUN, |
| | | // 自动+ID |
| | | SITE_AUTO_ID, |
| | | // 故障 |
| | | SITE_ERROR, |
| | | // 运行阻塞 |
| | | SITE_RUN_BLOCK, |
| | | ; |
| | | |
| | | public static StationStatusType process(StationProtocol stationProtocol){ |
| | | if (stationProtocol == null) { |
| | | return null; |
| | | } |
| | | if(stationProtocol.isAutoing() && stationProtocol.isLoading() && stationProtocol.getTaskNo() > 0 && stationProtocol.isRunBlock()){ |
| | | return SITE_RUN_BLOCK; |
| | | } |
| | | if (stationProtocol.isAutoing() && stationProtocol.isLoading() && stationProtocol.getTaskNo() > 0) { |
| | | return SITE_AUTO_RUN_ID; |
| | |
| | | if (!stationProtocol.isAutoing()) { |
| | | return SITE_UNAUTO; |
| | | } |
| | | if (stationProtocol.getError() > 0) { |
| | | return SITE_ERROR; |
| | | } |
| | | return null; |
| | | } |
| | | |