ZC非通信车占用移动授权逻辑bug修改
This commit is contained in:
parent
a89d0735f7
commit
917705eea8
@ -172,9 +172,12 @@ public class ZCLogicLoop {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//非通信车占用区段
|
//非通信车占用区段
|
||||||
if (temp.isNonCbtcOccupy() && !temp.isSwitchTrack()) {
|
if (temp.isNonCbtcOccupy()) {
|
||||||
deviceEnd = new MovementAuthority.End(section,
|
SectionPosition headPosition1 = train.getHeadPosition();
|
||||||
MovementAuthority.EndType.NCT_OCCUPIED_IN_FRONT_OF_SECTION);
|
if (!temp.isSamePhysical(headPosition1.getSection().getCode())) {
|
||||||
|
deviceEnd = new MovementAuthority.End(section,
|
||||||
|
MovementAuthority.EndType.NCT_OCCUPIED_IN_FRONT_OF_SECTION);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
section = temp;
|
section = temp;
|
||||||
|
@ -669,7 +669,7 @@ public class SimulationMainThread {
|
|||||||
Set<String> users = simulation.getSimulationUserIds();
|
Set<String> users = simulation.getSimulationUserIds();
|
||||||
SocketMessageVO<Boolean> message = SocketMessageFactory.build(
|
SocketMessageVO<Boolean> message = SocketMessageFactory.build(
|
||||||
WebSocketMessageType.Simulation_Reset,
|
WebSocketMessageType.Simulation_Reset,
|
||||||
simulation.getGroup(), false);
|
simulation.getGroup(), true);
|
||||||
this.stompMessageService.sendToUser(users, message);
|
this.stompMessageService.sendToUser(users, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,10 @@ public class MovementAuthority {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String debugStr() {
|
public String debugStr() {
|
||||||
return String.format("移动授权终点[类型:%s|位置:%s]", end.type, end.getEndPosition());
|
return String.format("移动授权终点[类型:%s|设备:%s|baseSection:%s|位置:%s]", end.type,
|
||||||
|
end.device.debugStr(),
|
||||||
|
end.baseSection != null ? end.baseSection.debugStr() : "null",
|
||||||
|
end.getEndPosition());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
Loading…
Reference in New Issue
Block a user