Page Summary
-
BaseVehicleis 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(), andgetVehicleName(). -
This class inherits from the standard Java
Objectclass and includes basic object functionalities likeequals(),hashCode(), andtoString().
| 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.