@Immutable public class GtfsRoute extends CsvBase
Constructor and Description |
---|
GtfsRoute(org.apache.commons.csv.CSVRecord record,
boolean supplementalFile,
java.lang.String fileName)
Creates a GtfsRoute object by reading the data
from the CSVRecord.
|
GtfsRoute(GtfsRoute originalRoute,
GtfsRoute supplementRoute)
When combining a regular route with a supplemental route need to
create a whole new object since this class is Immutable to make
it safer to use.
|
GtfsRoute(java.lang.String routeId,
java.lang.String agencyId,
java.lang.String routeShortName,
java.lang.String routeLongName,
java.lang.String routeType,
java.lang.String routeColor,
java.lang.String routeTextColor)
For creating a GtfsStop object from scratch.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgencyId() |
java.lang.Integer |
getBreakTime()
Returns the minimum time that drivers get as a break time for layovers
for the route.
|
boolean |
getHidden()
Returns if route should be hidden from user interface
for the public.
|
java.lang.Double |
getMaxDistance()
For specifying on a per route basis how far AVL report can be from
segment and still have it be considered a match.
|
java.lang.String |
getParentRouteId()
Some agencies create several entries for a single route.
|
java.lang.String |
getRouteColor() |
java.lang.String |
getRouteDesc() |
java.lang.String |
getRouteId() |
java.lang.String |
getRouteLongName() |
java.lang.Integer |
getRouteOrder()
Returns optional route_order or null if not set.
|
java.lang.String |
getRouteShortName()
Returns the route short name.
|
java.lang.String |
getRouteTextColor() |
java.lang.String |
getRouteType() |
java.lang.String |
getRouteURL() |
java.lang.String |
getUnscheduledBlockSuffix()
Returns suffix to use if should create unscheduled block assignments for
this route.
|
boolean |
shouldCreateUnscheduledBlock()
Returns true if should create unscheduled block assignments for this
route.
|
boolean |
shouldRemove()
Returns if route should be removed from configuration so it
doesn't show up at all
|
java.lang.String |
toString() |
getFileName, getLineNumber
public GtfsRoute(java.lang.String routeId, java.lang.String agencyId, java.lang.String routeShortName, java.lang.String routeLongName, java.lang.String routeType, java.lang.String routeColor, java.lang.String routeTextColor)
public GtfsRoute(org.apache.commons.csv.CSVRecord record, boolean supplementalFile, java.lang.String fileName)
record
- supplemental
- fileName
- for logging errorspublic java.lang.String getRouteId()
public java.lang.String getAgencyId()
public java.lang.String getRouteShortName()
public java.lang.String getRouteLongName()
public java.lang.String getRouteDesc()
public java.lang.String getRouteType()
public java.lang.String getRouteURL()
public java.lang.String getRouteColor()
public java.lang.String getRouteTextColor()
public java.lang.Integer getRouteOrder()
public java.lang.String getParentRouteId()
public boolean getHidden()
public boolean shouldRemove()
public boolean shouldCreateUnscheduledBlock()
public java.lang.String getUnscheduledBlockSuffix()
public java.lang.Integer getBreakTime()
public java.lang.Double getMaxDistance()
public java.lang.String toString()
toString
in class java.lang.Object