修改苏安院实体设备逻辑
This commit is contained in:
parent
e72837d793
commit
d4fc3ebbe0
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user