| | |
| | | Integer currentStationId = extractStationId(currentNode); |
| | | Integer endStationId = extractStationId(endNode); |
| | | |
| | | if (nextStationId != null && !nextStationId.equals(endStationId)) { |
| | | if (context.forbidStationIdSet.contains(nextStationId)) { |
| | | return false; |
| | | } |
| | | if (nextStationId != null) { |
| | | StationProtocol protocol = context.statusMap.get(nextStationId); |
| | | if (protocol != null && !protocol.isAutoing()) { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | if (nextStationId != null && !nextStationId.equals(endStationId)) { |
| | | if (context.forbidStationIdSet.contains(nextStationId)) { |
| | | return false; |
| | | } |
| | | if (context.globalPolicy.forceSkipPassOtherOutStation |
| | | && context.outStationIdSet.contains(nextStationId) |
| | | && !nextStationId.equals(context.startStationId) |