传输信号机不生成联锁数据

This commit is contained in:
joylink_zhangsai 2021-01-19 18:41:17 +08:00
parent 52986aa9a2
commit e00262ceb9
2 changed files with 9 additions and 1 deletions

View File

@ -187,8 +187,9 @@ public class DraftMapCiDataGeneratorImpl implements DraftMapCiDataGenerator {
List<Signal> approachList = new ArrayList<>();
log.info(String.format("共有信号机[%s]个", signalList.size()));
for (Signal signal : signalList) {
if (signal.isBlockingSignal()) {
if (signal.isBlockingSignal() || signal.isTransmissionSignal()) {
// 阻挡信号机永远红灯不生成联锁
// 传输信号机不需要生成联锁
continue;
}
// 信号机接近区段构建

View File

@ -339,6 +339,13 @@ public class Signal extends MayOutOfOrderDevice {
return Objects.equals(this.type, SignalType.PROTECTION);
}
/**
* 是否传输信号机
*/
public boolean isTransmissionSignal() {
return SignalType.TRANSMISSION.equals(this.type);
}
/**
* 是否与轨道常规运行方向相反
*