模拟设备状态变更接口调整
This commit is contained in:
parent
a50aaeaadf
commit
bafe1940ce
@ -7,6 +7,9 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
|
|
||||||
public class SignalChanger {
|
public class SignalChanger {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* X10301 /XR
|
||||||
|
*/
|
||||||
public static class Signal1Changer implements NameChangerFilter {
|
public static class Signal1Changer implements NameChangerFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -31,6 +34,9 @@ public class SignalChanger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* X1506_L2
|
||||||
|
*/
|
||||||
public static class Signal2Changer implements NameChangerFilter {
|
public static class Signal2Changer implements NameChangerFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -4,9 +4,11 @@ import club.joylink.xiannccda.ats.message.line3.device.DeviceType;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* P09301
|
||||||
|
*/
|
||||||
public class SwitchChanger implements NameChangerFilter {
|
public class SwitchChanger implements NameChangerFilter {
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DeviceType deviceType() {
|
public DeviceType deviceType() {
|
||||||
return DeviceType.DEVICE_TYPE_SWITCH;
|
return DeviceType.DEVICE_TYPE_SWITCH;
|
||||||
|
@ -6,6 +6,9 @@ import java.util.regex.Pattern;
|
|||||||
|
|
||||||
public class TrackChanger {
|
public class TrackChanger {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理 3号线 区段位 T06301A 这样类似的格式
|
||||||
|
*/
|
||||||
public static class Track1Changer implements NameChangerFilter {
|
public static class Track1Changer implements NameChangerFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -15,7 +18,7 @@ public class TrackChanger {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String changeDeviceName(String sourceName) {
|
public String changeDeviceName(String sourceName) {
|
||||||
Pattern regex = Pattern.compile("^([A-Za-z]{1,2})([\\d]{1,2})3?(.*?)([A-Z])$");
|
Pattern regex = Pattern.compile("^([A-Za-z]{1,2})([\\d]{1,2})3(.*?)([A-Z])$");
|
||||||
// Pattern regex = Pattern.compile("^([A-Za-z]{1,2})([\\d]{2})3(.*?)([A-Z])$");
|
// Pattern regex = Pattern.compile("^([A-Za-z]{1,2})([\\d]{2})3(.*?)([A-Z])$");
|
||||||
Matcher matcher = regex.matcher(sourceName);
|
Matcher matcher = regex.matcher(sourceName);
|
||||||
if (matcher.find()) {
|
if (matcher.find()) {
|
||||||
@ -28,6 +31,9 @@ public class TrackChanger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理区段 T11301 这样类似的格式
|
||||||
|
*/
|
||||||
public static class Track4Changer implements NameChangerFilter {
|
public static class Track4Changer implements NameChangerFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -53,6 +59,9 @@ public class TrackChanger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理区段 TP_D33G 这样类似的格式
|
||||||
|
*/
|
||||||
public static class Track2Changer implements NameChangerFilter {
|
public static class Track2Changer implements NameChangerFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -71,6 +80,9 @@ public class TrackChanger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 处理区段 T150406 这样类似的格式
|
||||||
|
*/
|
||||||
public static class Track3Changer implements NameChangerFilter {
|
public static class Track3Changer implements NameChangerFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -31811,7 +31811,7 @@ public final class LayoutGraphicsProto {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -31821,7 +31821,7 @@ public final class LayoutGraphicsProto {
|
|||||||
getChildrenList();
|
getChildrenList();
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -31830,7 +31830,7 @@ public final class LayoutGraphicsProto {
|
|||||||
int getChildrenCount();
|
int getChildrenCount();
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -31840,7 +31840,7 @@ public final class LayoutGraphicsProto {
|
|||||||
java.lang.String getChildren(int index);
|
java.lang.String getChildren(int index);
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -32308,7 +32308,7 @@ public final class LayoutGraphicsProto {
|
|||||||
com.google.protobuf.LazyStringArrayList.emptyList();
|
com.google.protobuf.LazyStringArrayList.emptyList();
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -32320,7 +32320,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -32331,7 +32331,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -32343,7 +32343,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -33975,7 +33975,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -33988,7 +33988,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -33999,7 +33999,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -34011,7 +34011,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -34024,7 +34024,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -34043,7 +34043,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -34061,7 +34061,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -34079,7 +34079,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
@ -34094,7 +34094,7 @@ public final class LayoutGraphicsProto {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
* 下属逻辑区段id(非岔区)
|
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <code>repeated string children = 8;</code>
|
* <code>repeated string children = 8;</code>
|
||||||
|
@ -2,7 +2,7 @@ server:
|
|||||||
port: 9081
|
port: 9081
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: local
|
active: dev
|
||||||
banner:
|
banner:
|
||||||
location: classpath:banner.txt
|
location: classpath:banner.txt
|
||||||
datasource:
|
datasource:
|
||||||
|
Loading…
Reference in New Issue
Block a user