BaseVehicle

  • BaseVehicle is an abstract class representing fundamental vehicle information within a transportation network.

  • It provides methods to retrieve unique identifiers for the provider, the vehicle within that provider's system, and a comprehensive vehicle name.

  • Developers can extend this class to create specific vehicle types with additional attributes or functionalities.

  • The class includes a public constructor and three abstract methods for accessing provider and vehicle identification.

public abstract class BaseVehicle extends Object

Base representation of a vehicle.

Public Constructor Summary

Public Method Summary

abstract String
getProviderId()
Returns the unique identifier for this provider.
abstract String
getVehicleId()
Returns the unique identifier for this vehicle for this provider.
abstract String
getVehicleName()
Returns the full name for this vehicle among all providers.

Inherited Method Summary

Public Constructors

public BaseVehicle ()

Public Methods

public abstract String getProviderId ()

Returns the unique identifier for this provider.

public abstract String getVehicleId ()

Returns the unique identifier for this vehicle for this provider.

public abstract String getVehicleName ()

Returns the full name for this vehicle among all providers.