Package | Description |
---|---|
carsproject.vehicles |
Modifier and Type | Class and Description |
---|---|
class |
AbstrModelVehicle
This class is a possible abstract implementation of the interface IThreadVehicle.
|
class |
ModelCar
This is a finished implementation of IThreadVehicle,
made extending AbstrThreadVehicle.
|
Modifier and Type | Method and Description |
---|---|
IModelVehicle |
Garage.createVehicle(java.lang.String vehicle,
java.lang.String name)
Create a new vehicle giving vehicle's common name as first parameter
and vehicle's unique name as second.
|
IModelVehicle |
AbstrThreadVehicle.getModelVehicle()
Return model vehicle's object related to this thread.
|
IModelVehicle |
Garage.getVehicle(Coordinates positionToSearch)
Given a position, it returns a vehicle if standing in that
position, null otherwise.
|
IModelVehicle |
Garage.getVehicle(java.lang.String name)
Returns only a vehicle giving its unique name.
|
IModelVehicle[] |
Garage.getVehicles()
Return a set with all vehicles stored in Garage.
|
Constructor and Description |
---|
AbstrThreadVehicle(IModelVehicle myVehicle)
Base constructor.
|