【实训生成属性枚举】

This commit is contained in:
weizhihong 2023-01-09 18:00:50 +08:00
parent 5e207a40f2
commit 4d9343142a

View File

@ -162,6 +162,14 @@ public enum PropertyValueRule {
return route.getName();
}
},
SIGNAL_FIRST_ROUTE_CODE("信号机关联的进路编码") {
@Override
public Object resolve(Simulation simulation, Object mapElement) {
Signal signal = (Signal) mapElement;
Route route = signal.getRouteList().get(0);
return route.getCode();
}
},
SIGNAL_ROUTE_CODE_LIST("信号机关联的所有进路编码") {
@Override
public Object resolve(Simulation simulation, Object mapElement) {