@@ -87,38 +87,6 @@ fun runScheduleMetadataExtractor(
8787 val signalCriticalPositions =
8888 getSignalCriticalPositions(fullInfra, envelopeWithStops, trainPath, closedSignalStops)
8989
90- // //
91-
92- // val envelopeAdapter =
93- // IncrementalRequirementEnvelopeAdapter(rollingStocks, envelopeWithStops, true)
94- // val spacingGenerator = SpacingResourceGenerator(fullInfra, kotlin.context, envelopeAdapter)
95- // spacingGenerator.extendPath(trainPath.getBlocks(), trainPath.getRoutes(), pathStops, true)
96- // // as the provided path is complete, the resource generator should never return NotEnoughPath
97- // val spacingRequirements = spacingGenerator.processUpdate()!!
98- //
99- // val routingRequirements =
100- // routingRequirements(
101- // fullInfra,
102- // trainPath,
103- // closedSignalStops,
104- // envelopeWithStops,
105- // kotlin.context,
106- // rollingStocks,
107- // )
108- // val reportTrain =
109- // makeSimpleReportTrain(envelope, trainPath, rollingStocks, schedule, pathItemPositions)
110- // return CompleteReportTrain(
111- // reportTrain.positions,
112- // reportTrain.times,
113- // reportTrain.speeds,
114- // reportTrain.energyConsumption,
115- // reportTrain.pathItemTimes,
116- // signalCriticalPositions,
117- // zoneUpdates,
118- // spacingRequirements.map { it.toRJS(rawInfra) },
119- // routingRequirements.map { it.toRJS(rawInfra) },
120- // )
121- // /
12290 val envelopeAdapter =
12391 IncrementalRequirementEnvelopeAdapter (rollingStocks, envelopeWithStops, true )
12492 val spacingGenerator = SpacingResourceGenerator (fullInfra, context, envelopeAdapter)
0 commit comments