Enum SectionTransportMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SectionTransportMode>

    public enum SectionTransportMode
    extends java.lang.Enum<SectionTransportMode>

    Specifies the Section mode of transport. A Section may have a different transport mode than the one specified for route calculation. For example, a car route may have a section having ferry transport mode.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BICYCLE
      Bicycle mode of transport.
      BUS
      Bus mode of transport.
      CAR
      Car mode of transport.
      CAR_SHUTTLE_TRAIN
      Mode of transport representing a shuttle train for cars.
      FERRY
      Ferry mode of transport.
      PEDESTRIAN
      Pedestrian mode of transport.
      PRIVATE_BUS
      Private bus mode of transport.
      PUBLIC_TRANSIT
      A section with this mode is part of a public transit route.
      SCOOTER
      Scooter mode of transport.
      TAXI
      Taxi mode of transport.
      TRUCK
      Truck mode of transport.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SectionTransportMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SectionTransportMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CAR_SHUTTLE_TRAIN

        public static final SectionTransportMode CAR_SHUTTLE_TRAIN

        Mode of transport representing a shuttle train for cars.

      • BUS

        public static final SectionTransportMode BUS

        Bus mode of transport. Denotes those vehicles operated by public transport provider. This transport mode has the access to the bus-only lane/road.

      • PRIVATE_BUS

        public static final SectionTransportMode PRIVATE_BUS

        Private bus mode of transport. Denotes those vehicles operated by private transport company. This transport mode does not have the access to the bus-only lane/road.

    • Method Detail

      • values

        public static SectionTransportMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SectionTransportMode c : SectionTransportMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SectionTransportMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null