public class StopTransfer extends Object implements Serializable
TransferTable
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
FORBIDDEN_TRANSFER
Special value for transferTime indicating that this transfer is forbidden
|
static int |
PREFERRED_TRANSFER
Special value for transferTime indicating that this transfer is preferred
|
static int |
TIMED_TRANSFER
Special value for transferTime indicating that this transfer is timed.
|
static int |
UNKNOWN_TRANSFER
Special value for transferTime indicating that this transfer is unknown
|
Constructor and Description |
---|
StopTransfer()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addSpecificTransfer(SpecificTransfer specificTransfer)
Add a specific transfer to this transfer.
|
int |
getFirstSpecificTransferTime()
Deprecated.
|
int |
getTransferTime(org.onebusaway.gtfs.model.Trip fromTrip,
org.onebusaway.gtfs.model.Trip toTrip)
Get the transfer time that should be used when transferring from a trip to another trip.
|
public static final int UNKNOWN_TRANSFER
public static final int PREFERRED_TRANSFER
public static final int FORBIDDEN_TRANSFER
public static final int TIMED_TRANSFER
public boolean addSpecificTransfer(SpecificTransfer specificTransfer)
specificTransfer
- is the specific transfer; is not allowed to be nullpublic int getTransferTime(org.onebusaway.gtfs.model.Trip fromTrip, org.onebusaway.gtfs.model.Trip toTrip)
fromTrip
- is the arriving triptoTrip
- is the departing trip@Deprecated public int getFirstSpecificTransferTime()
TransferTable
Copyright © 2018. All rights reserved.