【进路解锁逻辑修改】
This commit is contained in:
parent
dad1bfc982
commit
ec6e78dbcb
|
@ -196,10 +196,7 @@ public class CiLogic {
|
|||
// 进路首区段列车占用,进路开始解锁
|
||||
Section firstLogicSection = route.getFirstLogicSection();
|
||||
if(route.getStart().isGuideAspect() && firstLogicSection.getAxleCounterSection().isFaultOccupied()) {
|
||||
List<Section> sectionList = route.getStart().getApproachPathList().get(0).getSectionList();
|
||||
if(!CollectionUtils.isEmpty(sectionList) && !sectionList.get(0).isNctOccupied()) {
|
||||
trainUnlockStart(simulation, route);
|
||||
}
|
||||
log.debug(String.format("进路【%s(%s)】引导占用中,列车通过后请人工解锁", route.getName(), route.getCode()));
|
||||
} else{
|
||||
SimulationDataRepository repository = simulation.getRepository();
|
||||
if (repository.isTrainHeadOccupy(firstLogicSection)) {
|
||||
|
|
Loading…
Reference in New Issue