Skip to content

Commit 0abc62a

Browse files
add java doc
1 parent 22c3827 commit 0abc62a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

application/src/main/java/org/opentripplanner/transfer/TransferRepository.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
import org.opentripplanner.routing.api.request.StreetMode;
99
import org.opentripplanner.transit.model.site.StopLocation;
1010

11+
/**
12+
* This repository holds all transfers that are calculated between different stops for different
13+
* modes. It is populated during the graph build process and saved into the serialized graph object.
14+
* It should only be accessed directly during graph building, not during OTP server runtime. Use the
15+
* {@link TransferService} instead, once transfer updates are implemented it will handle mutability
16+
* correctly.
17+
*/
1118
public interface TransferRepository extends Serializable {
1219
Collection<PathTransfer> getTransfersByStop(StopLocation stop);
1320

application/src/main/java/org/opentripplanner/transfer/TransferService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
import org.opentripplanner.model.PathTransfer;
55
import org.opentripplanner.transit.model.site.StopLocation;
66

7+
/**
8+
* Access transfers during OTP server runtime. It provides a frozen view of all these elements at a
9+
* point in time, which is not affected by ongoing transfer updates, allowing results to remain
10+
* stable over the course of a request.
11+
*/
712
public interface TransferService {
813

914
Collection<PathTransfer> getTransfersByStop(StopLocation stop);

0 commit comments

Comments
 (0)