@@ -92,21 +92,21 @@ public final class GtfsRealisticTimeExpandedHandler<N extends INode & IHasId & I
92
92
* Map connecting stop IDs to transfer nodes.
93
93
*/
94
94
private final MutableMap <AgencyAndId , List <NodeTime <N >>> mStopToTransferNodes ;
95
+ /**
96
+ * Transfer time in seconds.
97
+ */
98
+ private final int mTransferDelay ;
95
99
/**
96
100
* Map connecting trip IDs to stop nodes in the sequence of the trip.
97
101
*/
98
102
private final MutableMap <AgencyAndId , List <TripStopNodes <N >>> mTripToSequence ;
103
+
99
104
/**
100
105
* Whether or not a graph cache is to be used. This determines if GTFS files
101
106
* should be filtered by a {@link RecentHandler} or not.
102
107
*/
103
108
private final boolean mUseGraphCache ;
104
109
105
- /**
106
- * Transfer time in seconds.
107
- */
108
- private final int transferDelay ;
109
-
110
110
/**
111
111
* Creates a new GTFS realistic time expanded handler which operates on the
112
112
* given graph using the given configuration.<br>
@@ -131,7 +131,7 @@ public GtfsRealisticTimeExpandedHandler(final G graph, final IGtfsConnectionBuil
131
131
mStopToTransferNodes = Maps .mutable .empty ();
132
132
mStopToDepNodes = Maps .mutable .empty ();
133
133
mStopToArrNodes = Maps .mutable .empty ();
134
- transferDelay = config .getTransferDelay ();
134
+ mTransferDelay = config .getTransferDelay ();
135
135
136
136
mUseGraphCache = config .useGraphCache ();
137
137
if (mUseGraphCache ) {
@@ -306,7 +306,7 @@ public void handle(final StopTime stopTime) {
306
306
307
307
final int arrTime = stopTime .getArrivalTime ();
308
308
final int depTime = stopTime .getDepartureTime ();
309
- final int transferTime = arrTime + transferDelay ;
309
+ final int transferTime = arrTime + mTransferDelay ;
310
310
311
311
// Build nodes
312
312
final N arrNode = mBuilder .buildNode ((float ) stop .getLat (), (float ) stop .getLon (), arrTime );
@@ -318,7 +318,7 @@ public void handle(final StopTime stopTime) {
318
318
319
319
// Connect arrival with departure and arrival with transfer
320
320
final E arrToDepEdge = mBuilder .buildEdge (arrNode , depNode , depTime - arrTime );
321
- final E arrToTransferEdge = mBuilder .buildEdge (arrNode , transferNode , transferDelay );
321
+ final E arrToTransferEdge = mBuilder .buildEdge (arrNode , transferNode , mTransferDelay );
322
322
mGraph .addEdge (arrToDepEdge );
323
323
mGraph .addEdge (arrToTransferEdge );
324
324
0 commit comments