Junjie
17 小时以前 a02af02219dfaadb189e138311d0e83be8428060
src/main/java/com/zy/core/thread/StationThread.java
@@ -14,7 +14,22 @@
    Map<Integer, StationProtocol> getStatusMap();
    List<Integer> getAllTaskNoList();
    default boolean hasRecentArrival(Integer stationId, Integer taskNo) {
        return false;
    }
    StationCommand getCommand(StationCommandType commandType, Integer taskNo, Integer stationId, Integer targetStationId, Integer palletSize);
    default StationCommand getCommand(StationCommandType commandType,
                                      Integer taskNo,
                                      Integer stationId,
                                      Integer targetStationId,
                                      Integer palletSize,
                                      Double pathLenFactor) {
        return getCommand(commandType, taskNo, stationId, targetStationId, palletSize);
    }
    default StationCommand getRunBlockRerouteCommand(Integer taskNo,
                                                     Integer stationId,
@@ -23,6 +38,20 @@
        return getCommand(StationCommandType.MOVE, taskNo, stationId, targetStationId, palletSize);
    }
    default StationCommand getRunBlockRerouteCommand(Integer taskNo,
                                                     Integer stationId,
                                                     Integer targetStationId,
                                                     Integer palletSize,
                                                     Double pathLenFactor) {
        return getCommand(StationCommandType.MOVE, taskNo, stationId, targetStationId, palletSize, pathLenFactor);
    }
    boolean clearPath(Integer taskNo);
    default boolean clearPathByStationSlot(Integer stationId, Integer slotIdx) {
        return false;
    }
    CommandResponse sendCommand(StationCommand command);
    CommandResponse sendOriginCommand(String address, short[] data);