修改苏安院实体设备逻辑

This commit is contained in:
joylink_zhangsai 2023-03-11 22:21:21 +08:00
parent e72837d793
commit d4fc3ebbe0
2 changed files with 7 additions and 5 deletions

View File

@ -145,11 +145,11 @@ public class AtpSectionService {
} else if (Section.AxleFault.FAULT.equals(section.getFault()) && section.getVirtualAxleCounter().isOccupy()) {
section.judgeAsNctOccupied(simulation);
}
// if (/*!section.isInvalid() &&*/ section.isNctOccupied()) {
// if (!sectionList.contains(section)) {
// section.judgeAsNctOccupied();
// }
// }
if (/*!section.isInvalid() &&*/ section.isNctOccupied()) {
if (!sectionList.contains(section)) {
section.judgeAsNctOccupied(simulation);
}
}
//ARB故障恢复判断
if (Section.AxleFault.ARB.equals(section.getFault()) && !section.getVirtualAxleCounter().isOccupy()) {
Section.AxleFault.ARB.fix(section);

View File

@ -44,6 +44,7 @@ public class SaySwitchConfig extends RealDeviceConfig {
return false;
} else {
turnToN = true;
turnToP = false;
startTime = LocalDateTime.now();
return true;
}
@ -57,6 +58,7 @@ public class SaySwitchConfig extends RealDeviceConfig {
if (turnToP) {
return false;
} else {
turnToN = false;
turnToP = true;
startTime = LocalDateTime.now();
return true;