Enum OccupancyEnumeration

  • All Implemented Interfaces:
    Serializable, Comparable<OccupancyEnumeration>

    public enum OccupancyEnumeration
    extends Enum<OccupancyEnumeration>

    Java class for OccupancyEnumeration.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="OccupancyEnumeration">
       <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
         <enumeration value="unknown"/>
         <enumeration value="empty"/>
         <enumeration value="manySeatsAvailable"/>
         <enumeration value="fewSeatsAvailable"/>
         <enumeration value="standingRoomOnly"/>
         <enumeration value="crushedStandingRoomOnly"/>
         <enumeration value="full"/>
         <enumeration value="notAcceptingPassengers"/>
         <enumeration value="undefined"/>
         <enumeration value="seatsAvailable"/>
         <enumeration value="standingAvailable"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • EMPTY

        public static final OccupancyEnumeration EMPTY
        GTFS-R "EMPTY" The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
      • MANY_SEATS_AVAILABLE

        public static final OccupancyEnumeration MANY_SEATS_AVAILABLE
        GTFS-R "MANY_SEATS_AVAILABLE" / TPEG Pts45_1, many seats available The vehicle has a large percentage of seats available. What percentage of free seats out of the total seats available is to be considered large enough to fall into this category is determined at the discretion of the producer.
      • FEW_SEATS_AVAILABLE

        public static final OccupancyEnumeration FEW_SEATS_AVAILABLE
        GTFS-R "FEW_SEATS_AVAILABLE" / TPEG Pts45_2, few seats available The vehicle has a small percentage of seats available. What percentage of free seats out of the total seats available is to be considered small enough to fall into this category is determined at the discretion of the producer.
      • STANDING_ROOM_ONLY

        public static final OccupancyEnumeration STANDING_ROOM_ONLY
        GTFS-R "STANDING_ROOM_ONLY" / TPEG Pts45_4, standing room only (and TPEG Pts45_3, no seats available) The vehicle can currently accommodate only standing passengers.
      • CRUSHED_STANDING_ROOM_ONLY

        public static final OccupancyEnumeration CRUSHED_STANDING_ROOM_ONLY
        GTFS-R "CRUSHED_STANDING_ROOM_ONLY" The vehicle can currently accommodate only standing passengers and has limited space for them.
      • NOT_ACCEPTING_PASSENGERS

        public static final OccupancyEnumeration NOT_ACCEPTING_PASSENGERS
        GTFS-R "NOT_ACCEPTING_PASSENGERS" The vehicle cannot accept passengers.
      • SEATS_AVAILABLE

        public static final OccupancyEnumeration SEATS_AVAILABLE
        (SIRI 2.1) deprecated - use a more specific value
      • STANDING_AVAILABLE

        public static final OccupancyEnumeration STANDING_AVAILABLE
        (SIRI 2.1) deprecated - use a more specific value
    • Method Detail

      • values

        public static OccupancyEnumeration[] 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 (OccupancyEnumeration c : OccupancyEnumeration.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OccupancyEnumeration valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()