Package org.opentcs.drivers.vehicle
Schnittstelle VehicleCommAdapterFactory
- Alle Superschnittstellen:
Lifecycle
Provides communication adapter instances for vehicles to be controlled.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAdapterFor
(Vehicle vehicle) Returns a communication adapter for controlling the given vehicle.Returns aVehicleCommAdapterDescription
for the factory/the adapters provided.boolean
providesAdapterFor
(Vehicle vehicle) Checks whether this factory can provide a communication adapter for the given vehicle.Von Schnittstelle geerbte Methoden org.opentcs.components.Lifecycle
initialize, isInitialized, terminate
-
Methodendetails
-
getDescription
VehicleCommAdapterDescription getDescription()Returns aVehicleCommAdapterDescription
for the factory/the adapters provided.- Gibt zurück:
- A
VehicleCommAdapterDescription
for the factory/the adapters provided.
-
providesAdapterFor
Checks whether this factory can provide a communication adapter for the given vehicle.- Parameter:
vehicle
- The vehicle to check for.- Gibt zurück:
true
if, and only if, this factory can provide a communication adapter to control the given vehicle.
-
getAdapterFor
Returns a communication adapter for controlling the given vehicle.- Parameter:
vehicle
- The vehicle to be controlled.- Gibt zurück:
- A communication adapter for controlling the given vehicle, or
null
, if this factory cannot provide an adapter for it.
-