public class SpecificTransfer extends Object implements Serializable
TransferTable
,
Serialized FormModifier 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(org.onebusaway.gtfs.model.AgencyAndId fromRouteId,
org.onebusaway.gtfs.model.AgencyAndId toRouteId,
org.onebusaway.gtfs.model.AgencyAndId fromTripId,
org.onebusaway.gtfs.model.AgencyAndId toTripId,
int transferTime) |
SpecificTransfer(org.onebusaway.gtfs.model.Route fromRoute,
org.onebusaway.gtfs.model.Route toRoute,
org.onebusaway.gtfs.model.Trip fromTrip,
org.onebusaway.gtfs.model.Trip toTrip,
int transferTime) |
Modifier and Type | Method and Description |
---|---|
int |
getSpecificity() |
boolean |
matches(org.onebusaway.gtfs.model.Trip fromTrip,
org.onebusaway.gtfs.model.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(org.onebusaway.gtfs.model.AgencyAndId fromRouteId, org.onebusaway.gtfs.model.AgencyAndId toRouteId, org.onebusaway.gtfs.model.AgencyAndId fromTripId, org.onebusaway.gtfs.model.AgencyAndId toTripId, int transferTime)
public SpecificTransfer(org.onebusaway.gtfs.model.Route fromRoute, org.onebusaway.gtfs.model.Route toRoute, org.onebusaway.gtfs.model.Trip fromTrip, org.onebusaway.gtfs.model.Trip toTrip, int transferTime)
public int getSpecificity()
public boolean matches(org.onebusaway.gtfs.model.Trip fromTrip, org.onebusaway.gtfs.model.Trip toTrip)
fromTrip
- is the arriving triptoTrip
- is the departing tripCopyright © 2018. All rights reserved.