传输信号机不生成联锁数据
This commit is contained in:
parent
52986aa9a2
commit
e00262ceb9
@ -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;
|
||||
}
|
||||
// 信号机接近区段构建
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否与轨道常规运行方向相反
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user