BaseVehicle

  • BaseVehicle is an abstract class representing a vehicle with basic properties like provider ID, vehicle ID, and vehicle name.

  • It serves as the base class for more specific vehicle types like DeliveryVehicle, which handles tasks for deliveries.

  • Developers can access vehicle information through methods such as getProviderId(), getVehicleId(), and getVehicleName().

  • This class inherits from the standard Java Object class and includes basic object functionalities like equals(), hashCode(), and toString().

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.