Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
commit
34f8a0883e
@ -4,15 +4,10 @@ import club.joylink.rtss.simulation.cbtc.CTC.data.CtcRepository;
|
|||||||
import club.joylink.rtss.simulation.cbtc.CTC.data.CtcStationRunPlanLog;
|
import club.joylink.rtss.simulation.cbtc.CTC.data.CtcStationRunPlanLog;
|
||||||
import club.joylink.rtss.simulation.cbtc.CTC.data.RouteSequence;
|
import club.joylink.rtss.simulation.cbtc.CTC.data.RouteSequence;
|
||||||
import club.joylink.rtss.simulation.cbtc.Simulation;
|
import club.joylink.rtss.simulation.cbtc.Simulation;
|
||||||
import club.joylink.rtss.simulation.cbtc.data.SimulationDataRepository;
|
|
||||||
import club.joylink.rtss.simulation.cbtc.data.map.Station;
|
import club.joylink.rtss.simulation.cbtc.data.map.Station;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.time.LocalTime;
|
import java.time.LocalTime;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class CTCService {
|
public class CTCService {
|
||||||
@ -88,10 +83,10 @@ public class CTCService {
|
|||||||
/**
|
/**
|
||||||
* 同意发车预告
|
* 同意发车预告
|
||||||
*/
|
*/
|
||||||
public void agreeDepartureNotice(Simulation simulation, String stationCode, String tripNumber) {
|
public void agreeDepartureNotice(Simulation simulation, String stationCode, String runPlanCode) {
|
||||||
CtcStationRunPlanLog currentStationPlan = getCtcStationRunPlanByRunPlanCode(simulation, stationCode, tripNumber);
|
CtcStationRunPlanLog currentStationPlan = getCtcStationRunPlanByRunPlanCode(simulation, stationCode, runPlanCode);
|
||||||
Station previousStation = currentStationPlan.getPreviousStation();
|
Station previousStation = currentStationPlan.getPreviousStation();
|
||||||
CtcStationRunPlanLog previousStationPlan = getCtcStationRunPlanByRunPlanCode(simulation, previousStation.getCode(), tripNumber);
|
CtcStationRunPlanLog previousStationPlan = getCtcStationRunPlanByRunPlanCode(simulation, previousStation.getCode(), runPlanCode);
|
||||||
currentStationPlan.finishReceivingNotice();
|
currentStationPlan.finishReceivingNotice();
|
||||||
previousStationPlan.finishDepartureNotice();
|
previousStationPlan.finishDepartureNotice();
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ public class SimulationBuilder {
|
|||||||
for (int index = 0, len = tripPlan.getPlanList().size(); index < len; index++) {
|
for (int index = 0, len = tripPlan.getPlanList().size(); index < len; index++) {
|
||||||
ctcRunPlanParam = new CtcRunPlanParam();
|
ctcRunPlanParam = new CtcRunPlanParam();
|
||||||
stationPlan = tripPlan.getPlanList().get(index);
|
stationPlan = tripPlan.getPlanList().get(index);
|
||||||
ctcRunPlanParam.setRunPlanCode(codePrefix + index);
|
ctcRunPlanParam.setRunPlanCode(codePrefix);
|
||||||
// 目前将到达、出发车次一直
|
// 目前将到达、出发车次一直
|
||||||
ctcRunPlanParam.setTripNumber(tripPlan.getTripNumber());
|
ctcRunPlanParam.setTripNumber(tripPlan.getTripNumber());
|
||||||
ctcRunPlanParam.setArriveTripNumber(tripPlan.getTripNumber());
|
ctcRunPlanParam.setArriveTripNumber(tripPlan.getTripNumber());
|
||||||
|
Loading…
Reference in New Issue
Block a user