BaseVehicle

  • BaseVehicle is an abstract class representing a base vehicle object, which extends the Object class.

  • DeliveryVehicle is a known direct subclass of BaseVehicle, representing a vehicle used to perform tracked actions.

  • The BaseVehicle class has a public constructor and three abstract methods: getProviderId, getVehicleId, and getVehicleName.

  • getProviderId returns the unique identifier for a given provider, getVehicleId returns the unique identifier for the vehicle for a given provider, and getVehicleName returns the full name of the vehicle across all providers.

public abstract class BaseVehicle extends Object
Known Direct Subclasses

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.