Repository navigation
Vehicle
This class is designed to act as the Vehicle information retention, with each feature changing the system's values.
Author: Julianna Silva
owner: An instance of the Customer class representing the owner of the vehicle.
vehicleID: An integer representing the vehicle's ID.
year: An integer representing the year of the vehicle (Note: the year attribute is present but not used in the provided constructors).
type: A string representing the type of the vehicle.
make: A string representing the make of the vehicle.
model: A string representing the model of the vehicle.
colour: A string representing the color of the vehicle.
licensePlate: A string representing the license plate of the vehicle.
registration: A string representing the registration information of the vehicle.
public Vehicle(): Default constructor for general technical operations.
public Vehicle(int vehicleID, Customer owner, String type, String make, String model, String colour, String licensePlate, String registration): Constructor for creating a Vehicle with specified values.
getVehicleID() - Gets Claim ID
setVehicleID() - Sets Claim ID
getOwner() - Gets Owner
setOwner() - Sets Owner
getOwnerDetails(): A method that retrieves details about the owner of the vehicle. If the owner is not assigned (owner is null), it returns "No owner assigned." Otherwise, it returns a string containing the owner's ID and name.