【实训生成属性枚举】
This commit is contained in:
parent
5e207a40f2
commit
4d9343142a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user