列车图例显示位置调整
This commit is contained in:
parent
943c46bda7
commit
8bd766a301
@ -24,7 +24,9 @@ public class PackingService implements CalculateDiagram{
|
|||||||
Section trainSection = train.getHeadPosition().getSection();
|
Section trainSection = train.getHeadPosition().getSection();
|
||||||
Long mapId = simulation.getBuildParams().getMap().getId();
|
Long mapId = simulation.getBuildParams().getMap().getId();
|
||||||
LocalDateTime simulationDateTime = simulation.getCorrectSystemTime();
|
LocalDateTime simulationDateTime = simulation.getCorrectSystemTime();
|
||||||
if(train.isParkingAt()){
|
if(!train.isParkingAt()){
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
Station startStation = diagramStation.findFirstNotDepotStation(train.isRight());
|
Station startStation = diagramStation.findFirstNotDepotStation(train.isRight());
|
||||||
Station lastStation = diagramStation.findLastNotDepotStation(train.isRight());
|
Station lastStation = diagramStation.findLastNotDepotStation(train.isRight());
|
||||||
if(trainSection.isStandTrack() && Objects.equals(trainSection.getStation().getCode(),startStation.getCode())){
|
if(trainSection.isStandTrack() && Objects.equals(trainSection.getStation().getCode(),startStation.getCode())){
|
||||||
@ -47,7 +49,6 @@ public class PackingService implements CalculateDiagram{
|
|||||||
return Optional.of(sd);
|
return Optional.of(sd);
|
||||||
}
|
}
|
||||||
//中途停靠站不处理
|
//中途停靠站不处理
|
||||||
}
|
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user