车务管理终端功能代码调整
This commit is contained in:
parent
feb4b1532c
commit
a45f64d71c
@ -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();
|
||||
|
@ -575,6 +575,6 @@ public class CtcEffectRepository {
|
||||
this.stationTrackSectionMap.clear();
|
||||
this.doorRepository.clear();
|
||||
this.regularTrainLineMap.clear();
|
||||
|
||||
updateReguarTrainLineMap.clear();
|
||||
}
|
||||
}
|
||||
|
@ -48,10 +48,12 @@ public class CtcManageRepository {
|
||||
|
||||
|
||||
public void reset() {
|
||||
|
||||
this.trackSectionRepository.clear();
|
||||
this.doorRepository.clear();
|
||||
this.runPlanRepository.clear();
|
||||
this.runPlanRepository.clear();
|
||||
regularTrainLineMap.clear();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user