public class SpecificTransfer extends Object implements Serializable
TransferTable,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SPECIFICITY
Constant containing the maximum specificity that is allowed by the specifications
|
static int |
MIN_SPECIFICITY
Constant containing the minimum specificity that is allowed by the specifications
|
| Constructor and Description |
|---|
SpecificTransfer(FeedScopedId fromRouteId,
FeedScopedId toRouteId,
FeedScopedId fromTripId,
FeedScopedId toTripId,
int transferTime) |
SpecificTransfer(Route fromRoute,
Route toRoute,
Trip fromTrip,
Trip toTrip,
int transferTime) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSpecificity() |
boolean |
matches(Trip fromTrip,
Trip toTrip)
Returns whether this specific transfer is applicable to a transfer between
two trips.
|
public static final int MIN_SPECIFICITY
public static final int MAX_SPECIFICITY
public SpecificTransfer(FeedScopedId fromRouteId, FeedScopedId toRouteId, FeedScopedId fromTripId, FeedScopedId toTripId, int transferTime)
public int getSpecificity()
public boolean matches(Trip fromTrip, Trip toTrip)
fromTrip - is the arriving triptoTrip - is the departing tripCopyright © 2019. All rights reserved.