【增加实训中进路始终信号机在同一联锁站的规则】

This commit is contained in:
weizhihong 2023-05-21 15:54:05 +08:00
parent 6331e723eb
commit bc874187e6

View File

@ -614,6 +614,14 @@ public enum MapDeviceRule {
return generateRandomElement(queryNormalRouteList(simulation, r -> r.getInterlockStation().isHasControlMode() && !r.isGuide() && !r.isTurnBack()), NUMBER);
}
},
ROUTE_CONTROL_SAME_STATION_LIST("控制模式车站进路始终信号机在同一站列表") {
@Override
public List<Route> filterMapDeviceList(Simulation simulation) {
return generateRandomElement(queryNormalRouteList(simulation,
r -> r.getInterlockStation().isHasControlMode() && !r.isGuide() && !r.isTurnBack()
&& Objects.equals(r.getStart().getInterlockStation(), r.getDestination().getInterlockStation())), NUMBER);
}
},
ROUTE_GUIDE_LIST("引导进路列表") {
@Override
public List<Route> filterMapDeviceList(Simulation simulation) {