| | |
| | | |
| | | // 下发站点信息 |
| | | staProtocol.setWorkNo(wrkMast.getWrkNo()); |
| | | staProtocol.setStaNo(wrkMast.getStaNo().shortValue()); |
| | | staProtocol.setStaNo(RouteUtils.CrnStaEnd(wrkMast.getStaNo(),wrkMast.getSourceStaNo())); |
| | | if (!MessageQueue.offer(SlaveType.Devp, crnStn.getDevpPlcId(), new Task(2, staProtocol))) { |
| | | continue; |
| | | } |
| | |
| | | return getRouteIntersection(getRoute(a, c), getRoute(b, c), RouteCollectCountType.DEDUPLICATIONUNION); |
| | | } |
| | | |
| | | public static Short CrnStaEnd(Integer endSta,Integer souSta) { |
| | | switch (endSta) { |
| | | case 100: |
| | | if (souSta == 118){ |
| | | return (short)119; |
| | | } |
| | | return (short)149; |
| | | default: |
| | | return endSta.shortValue(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | public static void main(String[] arge){ |