Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: stdcm: precise comment on engineering allowance model #10867

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions core/src/main/kotlin/fr/sncf/osrd/graph/Pathfinding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ class Pathfinding<NodeT : Any, EdgeT : Any, OffsetType>(
targets: List<Collection<EdgeLocation<EdgeT, OffsetType>>>
): Result<EdgeT, OffsetType>? {
// We convert the targets of each step into functions, to call the more generic overload of
// this
// method below
// this method below
val starts = targets[0]
val targetsOnEdges = ArrayList<TargetsOnEdge<EdgeT, OffsetType>>()
for (i in 1 until targets.size) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ data class STDCMEdge(
// How long it takes to go from the beginning to the end of the block, taking the
// standard allowance into account
val totalTime: Double,
// If this edges starts after the end of an engineering allowance, this contains
// If this edge starts at the end of an engineering allowance, this contains
// some data like its length and extra time. Null if there's no engineering allowance
// ending here. Overrides any allowance spanning part of the range from previous edges.
val engineeringAllowance: EngineeringAllowanceData?,
Expand Down
Loading