模拟设备状态变更接口调整

This commit is contained in:
tiger_zhou 2023-07-19 11:19:20 +08:00
parent a50aaeaadf
commit bafe1940ce
7 changed files with 1357 additions and 782 deletions

View File

@ -7,6 +7,9 @@ import org.apache.commons.lang3.StringUtils;
public class SignalChanger {
/**
* X10301 /XR
*/
public static class Signal1Changer implements NameChangerFilter {
@Override
@ -31,6 +34,9 @@ public class SignalChanger {
}
}
/**
* X1506_L2
*/
public static class Signal2Changer implements NameChangerFilter {
@Override

View File

@ -4,9 +4,11 @@ import club.joylink.xiannccda.ats.message.line3.device.DeviceType;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* P09301
*/
public class SwitchChanger implements NameChangerFilter {
@Override
public DeviceType deviceType() {
return DeviceType.DEVICE_TYPE_SWITCH;

View File

@ -6,6 +6,9 @@ import java.util.regex.Pattern;
public class TrackChanger {
/**
* 处理 3号线 区段位 T06301A 这样类似的格式
*/
public static class Track1Changer implements NameChangerFilter {
@Override
@ -15,7 +18,7 @@ public class TrackChanger {
@Override
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])$");
Matcher matcher = regex.matcher(sourceName);
if (matcher.find()) {
@ -28,6 +31,9 @@ public class TrackChanger {
}
}
/**
* 处理区段 T11301 这样类似的格式
*/
public static class Track4Changer implements NameChangerFilter {
@Override
@ -53,6 +59,9 @@ public class TrackChanger {
}
}
/**
* 处理区段 TP_D33G 这样类似的格式
*/
public static class Track2Changer implements NameChangerFilter {
@Override
@ -71,6 +80,9 @@ public class TrackChanger {
}
}
/**
* 处理区段 T150406 这样类似的格式
*/
public static class Track3Changer implements NameChangerFilter {
@Override

View File

@ -31811,7 +31811,7 @@ public final class LayoutGraphicsProto {
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -31821,7 +31821,7 @@ public final class LayoutGraphicsProto {
getChildrenList();
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -31830,7 +31830,7 @@ public final class LayoutGraphicsProto {
int getChildrenCount();
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -31840,7 +31840,7 @@ public final class LayoutGraphicsProto {
java.lang.String getChildren(int index);
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -32308,7 +32308,7 @@ public final class LayoutGraphicsProto {
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -32320,7 +32320,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -32331,7 +32331,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -32343,7 +32343,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -33975,7 +33975,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -33988,7 +33988,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -33999,7 +33999,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -34011,7 +34011,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -34024,7 +34024,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -34043,7 +34043,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -34061,7 +34061,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -34079,7 +34079,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>
@ -34094,7 +34094,7 @@ public final class LayoutGraphicsProto {
}
/**
* <pre>
* 下属逻辑区段id(非岔区)
* 下属逻辑区段id(非岔区)/下属道岔id(岔区)
* </pre>
*
* <code>repeated string children = 8;</code>

View File

@ -2,7 +2,7 @@ server:
port: 9081
spring:
profiles:
active: local
active: dev
banner:
location: classpath:banner.txt
datasource: