Skip to content

Commit

Permalink
doc: Document why unused parameters in Raptor API should NOT be deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
t2gran committed Aug 25, 2022
1 parent f791309 commit ee919be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public interface StopArrivals {
/**
* The earliest arrival time at the given stop. If the stop is not reached, the behavior is
* undefined; It may return an arbitrary value or throw an exception.
* <p>
* This is currently unused in OTP, but useful for analyses/comparing the results.
*/
@SuppressWarnings("unused")
int bestArrivalTime(int stopIndex);

/**
Expand All @@ -30,6 +33,9 @@ public interface StopArrivals {
/**
* The smallest number of transfers needed to reach the given stop. If the stop is not reached,
* the behavior is undefined; It may return an arbitrary value or throw an exception.
* <p>
* This is currently unused in OTP, but useful for analyses/comparing the results.
*/
@SuppressWarnings("unused")
int smallestNumberOfTransfers(int stopIndex);
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ public interface Heuristics {

/**
* Return the best/minimum required number of transfers from origin to destination.
* <p>
* Currently unused, but useful for debugging.
*/
@SuppressWarnings("unused")
int bestOverallJourneyNumOfTransfers();

/**
Expand Down

0 comments on commit ee919be

Please sign in to comment.