Class RouteDirection

java.lang.Object
com.nnamo.models.RouteDirection

public class RouteDirection extends Object
Represents a directioned route. It is used to differentiate routes based on their direction, for instance when visualizing the routes on the map Contains route ID, agency, names, type, direction, and direction name.
  • Constructor Details

    • RouteDirection

      public RouteDirection(String id, AgencyModel agency, String longName, String shortName, RouteType routeType, Direction direction, String directionName)
      Constructs a RouteDirection with all required fields.
      Parameters:
      id - the route ID
      agency - the agency
      longName - the long name of the route
      shortName - the short name of the route
      routeType - the route type
      direction - the direction
      directionName - the direction name
  • Method Details

    • getId

      public String getId()
      Gets the route ID.
      Returns:
      the route ID
    • getLongName

      public String getLongName()
      Gets the long name of the route.
      Returns:
      the long name
    • getShortName

      public String getShortName()
      Gets the short name of the route.
      Returns:
      the short name
    • getAgency

      public AgencyModel getAgency()
      Gets the agency associated with the route.
      Returns:
      the agency
    • getType

      public RouteType getType()
      Gets the route type.
      Returns:
      the route type
    • getDirection

      public Direction getDirection()
      Gets the direction of the route.
      Returns:
      the direction
    • getDirectionName

      public String getDirectionName()
      Gets the direction name.
      Returns:
      the direction name
    • setDirection

      public void setDirection(Direction direction)
      Sets the direction of the route.
      Parameters:
      direction - the direction to set
    • setDirectionName

      public void setDirectionName(String directionName)
      Sets the direction name.
      Parameters:
      directionName - the direction name to set