车务管理终端功能代码调整

This commit is contained in:
tiger_zhou 2022-08-29 13:34:48 +08:00
parent feb4b1532c
commit a45f64d71c
4 changed files with 15 additions and 5 deletions

View File

@ -19,7 +19,7 @@ import java.util.concurrent.atomic.AtomicInteger;
@Setter
@Getter
@Slf4j
public class StationDirection extends MayOutOfOrderDevice {
public class StationDirection extends MayOutOfOrderDevice implements Cloneable {
/**
* 发辅助默认倒计时 25s
*/
@ -270,7 +270,14 @@ public class StationDirection extends MayOutOfOrderDevice {
this.deliverRouteList = new ArrayList<>();
this.routeSettingStatusMap = new HashMap<>();
}
public StationDirection clone(){
try {
return (StationDirection)super.clone();
} catch (CloneNotSupportedException e) {
e.printStackTrace();
}
return null;
}
@Override
public void reset() {
this.routeSettingStatusMap.clear();

View File

@ -575,6 +575,6 @@ public class CtcEffectRepository {
this.stationTrackSectionMap.clear();
this.doorRepository.clear();
this.regularTrainLineMap.clear();
updateReguarTrainLineMap.clear();
}
}

View File

@ -48,10 +48,12 @@ public class CtcManageRepository {
public void reset() {
this.trackSectionRepository.clear();
this.doorRepository.clear();
this.runPlanRepository.clear();
this.runPlanRepository.clear();
regularTrainLineMap.clear();
}
/**

View File

@ -366,7 +366,8 @@ public class SimulationBuilder {
// ioGate.setCode(sd.getCode());
// ioGate.setIoName(sd.getName());
// ioGate.setDirection(sd.getLabelEnum());
doorRep.save(sd);
doorRep.save(sd.clone());
}
for (Stand stand : station.getAllStandList()) {
TrackSection ts = new TrackSection(stand.getSection());