| | |
| | | jarProtocol.setOpenDoorSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); |
| | | } else if (jarProtocol.statusType .equals(JarStatusType.WAITING5) || jarProtocol.statusType .equals(JarStatusType.OFF_LINE)){ |
| | | jarProtocol.setCloseDoorSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); |
| | | } else if (jarProtocol.statusType .equals(JarStatusType.WAITING2)){ |
| | | if (jarProtocol.rightDoorOpen == 2 || jarProtocol.leftDoorOpen == 2){ |
| | | jarProtocol.setLeftDoorOpen(0);//open the left door //进料门 |
| | | jarProtocol.setRightDoorOpen(0);//open the right door //出料门 |
| | | } |
| | | if (jarProtocol.rightDoorClose == 2 || jarProtocol.leftDoorClose == 2){ |
| | | jarProtocol.setLeftDoorClose(0);//close the left door //进料门 |
| | | jarProtocol.setRightDoorClose(0);//close the right door //出料门 |
| | | } |
| | | } else if (jarProtocol.statusType .equals(JarStatusType.WAITING1) || jarProtocol.statusType .equals(JarStatusType.MOVING)){ |
| | | if (!jarProtocol.rightDoorOpen.equals(jarProtocol.leftDoorOpen)) { |
| | | if (jarProtocol.rightDoorOpen == 0 || jarProtocol.leftDoorOpen == 0){ |
| | | if (jarProtocol.rightDoorOpen == 2 || jarProtocol.leftDoorOpen == 2){ |
| | | jarProtocol.setLeftDoorOpen(0);//open the left door //进料门 |
| | | jarProtocol.setRightDoorOpen(0);//open the right door //出料门 |
| | | } |
| | | } else if (jarProtocol.leftDoorOpen==1 || jarProtocol.leftDoorClose==1 || |
| | | jarProtocol.rightDoorOpen==1 || jarProtocol.rightDoorClose==1){ |
| | | |
| | | } else { |
| | | if (jarProtocol.statusType .equals(JarStatusType.WAITING2)){ |
| | | |
| | | if (jarProtocol.rightDoorOpen == 2 || jarProtocol.leftDoorOpen == 2){ |
| | | jarProtocol.setLeftDoorOpen(0);//open the left door //进料门 |
| | | jarProtocol.setRightDoorOpen(0);//open the right door //出料门 |
| | | } |
| | | } |
| | | if (jarProtocol.rightDoorClose == 0 || jarProtocol.leftDoorClose == 0){ |
| | | if (jarProtocol.rightDoorClose == 2 || jarProtocol.leftDoorClose == 2){ |
| | | jarProtocol.setLeftDoorClose(0);//close the left door //进料门 |
| | | jarProtocol.setRightDoorClose(0);//close the right door //出料门 |
| | | } |
| | | } else if (jarProtocol.statusType .equals(JarStatusType.WAITING1) || jarProtocol.statusType .equals(JarStatusType.MOVING)){ |
| | | if (!jarProtocol.rightDoorOpen.equals(jarProtocol.leftDoorOpen)) { |
| | | if (jarProtocol.rightDoorOpen == 0 || jarProtocol.leftDoorOpen == 0){ |
| | | if (jarProtocol.rightDoorOpen == 2 || jarProtocol.leftDoorOpen == 2){ |
| | | jarProtocol.setLeftDoorOpen(0);//open the left door //进料门 |
| | | jarProtocol.setRightDoorOpen(0);//open the right door //出料门 |
| | | } |
| | | } |
| | | } |
| | | if (jarProtocol.rightDoorClose == 0 || jarProtocol.leftDoorClose == 0){ |
| | | if (jarProtocol.rightDoorClose == 2 || jarProtocol.leftDoorClose == 2){ |
| | | jarProtocol.setLeftDoorClose(0);//close the left door //进料门 |
| | | jarProtocol.setRightDoorClose(0);//close the right door //出料门 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | jarProtocol.setUpStatus(jarProtocol.getStatus()); |
| | | // |