From 4d9343142a0ace87e5560705c5766c6ac184d758 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Mon, 9 Jan 2023 18:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E8=AE=AD=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=9E=9A=E4=B8=BE=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/vo/training2/rule/PropertyValueRule.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/club/joylink/rtss/vo/training2/rule/PropertyValueRule.java b/src/main/java/club/joylink/rtss/vo/training2/rule/PropertyValueRule.java index ac9f40f74..7445e16f6 100644 --- a/src/main/java/club/joylink/rtss/vo/training2/rule/PropertyValueRule.java +++ b/src/main/java/club/joylink/rtss/vo/training2/rule/PropertyValueRule.java @@ -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) {