Skip to content

Commit

Permalink
STYLE: NAV-181 - Format project
Browse files Browse the repository at this point in the history
  • Loading branch information
clukas1 authored and munterfi committed Sep 16, 2024
1 parent 6843994 commit 67fb155
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/main/java/ch/naviqore/raptor/router/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@ class Query {
raptorConfig.getDaysToScan());
}

/**
* Check if there are any marked stops in the marked stops mask.
*
* @param markedStopsMask the marked stops mask to check.
* @return true if there are any marked stops, false otherwise.
*/
private static boolean hasMarkedStops(boolean[] markedStopsMask) {
for (boolean b : markedStopsMask) {
if (b) {
return true;
}
}
return false;
}

/**
* Main control flow of the routing algorithm. Spawns from source stops, coordinates route scanning, footpath
* relaxation, and time/label updates in the correct order.
Expand Down Expand Up @@ -187,21 +202,6 @@ private void doRounds(boolean[] markedStopsMask) {
}
}

/**
* Check if there are any marked stops in the marked stops mask.
*
* @param markedStopsMask the marked stops mask to check.
* @return true if there are any marked stops, false otherwise.
*/
private static boolean hasMarkedStops(boolean[] markedStopsMask) {
for (boolean b : markedStopsMask) {
if (b) {
return true;
}
}
return false;
}

/**
* Get the range offsets for the marked stops.
* <p>
Expand Down

0 comments on commit 67fb155

Please sign in to comment.