Class Vehicle

  • All Implemented Interfaces:
    java.io.Serializable

    public class Vehicle
    extends java.lang.Object
    implements java.io.Serializable
    The vehicle used on a line.

    See Transit details for more detail.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String icon
      The URL for an icon associated with this vehicle type.
      java.lang.String localIcon
      The URL for an icon based on the local transport signage.
      java.lang.String name
      The name of the vehicle on this line.
      VehicleType type
      The type of vehicle that runs on this line.
    • Constructor Summary

      Constructors 
      Constructor Description
      Vehicle()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        public java.lang.String name
        The name of the vehicle on this line. E.g. "Subway".
      • type

        public VehicleType type
        The type of vehicle that runs on this line. See the VehicleType documentation for a complete list of supported values.
      • icon

        public java.lang.String icon
        The URL for an icon associated with this vehicle type.
      • localIcon

        public java.lang.String localIcon
        The URL for an icon based on the local transport signage.
    • Constructor Detail

      • Vehicle

        public Vehicle()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object