| | |
| | | return false; |
| | | } |
| | | List<Integer> path = command.getNavigatePath(); |
| | | return (path == null || path.isEmpty()) && command.getStationId() != null |
| | | && command.getStationId().equals(command.getTargetStaNo()); |
| | | if (command.getStationId() == null || !command.getStationId().equals(command.getTargetStaNo())) { |
| | | return false; |
| | | } |
| | | if (path == null || path.isEmpty()) { |
| | | return true; |
| | | } |
| | | return path.size() == 1 && command.getStationId().equals(path.get(0)); |
| | | } |
| | | |
| | | private void handleDirectMoveCommand(Integer deviceNo, StationCommand command) { |