| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean isOutMost(String locNo) { |
| | | return Integer.parseInt(locNo.substring(0, 2)) == Utils.getGroupRow(locNo); |
| | | public Boolean isOutMost(String locNo, Boolean pakin) { |
| | | if (null == pakin) { |
| | | return (Integer.parseInt(locNo.substring(0, 2)) == Utils.getGroupRow(locNo, true) |
| | | || Integer.parseInt(locNo.substring(0, 2)) == Utils.getGroupRow(locNo, false)); |
| | | } else { |
| | | return Integer.parseInt(locNo.substring(0, 2)) == Utils.getGroupRow(locNo, pakin); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | return this.baseMapper.getDemoNextLoc(crnNo); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean isShuttle(String locNo) { |
| | | int row = Utils.getRow(locNo); |
| | | if (row >= 2 && row <= 30) { |
| | | return Boolean.TRUE; |
| | | } |
| | | return Boolean.FALSE; |
| | | } |
| | | |
| | | } |