|
@@ -272,11 +272,9 @@ public class LabExitLineVertexServiceImpl implements ILabExitLineVertexService {
|
|
|
logger.info("orign->dist" + " dist " + " path");
|
|
logger.info("orign->dist" + " dist " + " path");
|
|
|
for (int i = 0; i < V; i++) {
|
|
for (int i = 0; i < V; i++) {
|
|
|
for (int j = 0; j < V; j++) {
|
|
for (int j = 0; j < V; j++) {
|
|
|
- if (i != j) {//只是避免了vi->vi的输出
|
|
|
|
|
- if (linePointVOList.get(i).getPointAttribute() == 4 && linePointVOList.get(i).getPointVOList().get(j).getPointAttribute() == 1) {
|
|
|
|
|
- CompletableFuture <Map <String, Object>> setCompletableFuture = optimalRoute(linePointVOList, path, chain, i, j, oldList, oldRelationalData,labExitLineEvacuationVo);
|
|
|
|
|
- completableFutures.add(setCompletableFuture);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (i != j && linePointVOList.get(i).getPointAttribute() == 4 && linePointVOList.get(i).getPointVOList().get(j).getPointAttribute() == 1) {//只是避免了vi->vi的输出
|
|
|
|
|
+ CompletableFuture <Map <String, Object>> setCompletableFuture = optimalRoute(linePointVOList, path, chain, i, j, oldList, oldRelationalData,labExitLineEvacuationVo);
|
|
|
|
|
+ completableFutures.add(setCompletableFuture);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -357,9 +355,7 @@ public class LabExitLineVertexServiceImpl implements ILabExitLineVertexService {
|
|
|
Thread.sleep(timeWaitConfigUtils.getWaitTime());
|
|
Thread.sleep(timeWaitConfigUtils.getWaitTime());
|
|
|
}else if(a.getRelayType().intValue()==3){
|
|
}else if(a.getRelayType().intValue()==3){
|
|
|
try {
|
|
try {
|
|
|
- String relayCode = a.getRelayCode();
|
|
|
|
|
- String commandStr = RelayConstants.AT_STACH + a.getRelayBit() + "=" + RelayConstants.AT_OPEN + RelayConstants.SPACE_WRAP;
|
|
|
|
|
- NettyPushMsgService.push(relayCode, commandStr.getBytes());
|
|
|
|
|
|
|
+ extracted(a);
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
logger.error("异常信息:", e);
|
|
logger.error("异常信息:", e);
|
|
|
}
|
|
}
|
|
@@ -375,6 +371,12 @@ public class LabExitLineVertexServiceImpl implements ILabExitLineVertexService {
|
|
|
openHorn(labExitLineEvacuationVo);
|
|
openHorn(labExitLineEvacuationVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private static void extracted(LabExitPointRelay a) throws IOException {
|
|
|
|
|
+ String relayCode = a.getRelayCode();
|
|
|
|
|
+ String commandStr = RelayConstants.AT_STACH + a.getRelayBit() + "=" + RelayConstants.AT_OPEN + RelayConstants.SPACE_WRAP;
|
|
|
|
|
+ NettyPushMsgService.push(relayCode, commandStr.getBytes());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 开启喇叭播放音乐
|
|
* 开启喇叭播放音乐
|
|
|
*
|
|
*
|