Class Feeder
java.lang.Object
id.klacak.bus_navigator.Route
id.klacak.bus_navigator.Feeder
A transit route designated as a feeder service.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Route
addStop, getColor, getLongName, getNameFormatted, getShortName, getStops, getTextColor, stopPosition, toStringModifier and TypeMethodDescriptionvoidAppends a stop to the route and associates this route with that stop.getColor()Gets the background color used to display this route.Gets the full descriptive name of this route.Formats the route code and name with ANSI terminal colors.Gets the short code identifying this route.getStops()Gets the stops associated with this route, in travel order.Gets the text color used to display this route.intstopPosition(Stop targetStop) Finds the first position of a stop in this route.toString()
-
Constructor Details
-
Feeder
Creates a feeder route with the supplied names and display colors.- Parameters:
shortName- route codelongName- descriptive route namecolor- route background color in hexadecimal formattextColor- route text color in hexadecimal format
-