Package org.opentcs.drivers.vehicle
Interface VehicleCommAdapterFactory
- All Superinterfaces:
Lifecycle
public interface VehicleCommAdapterFactory extends Lifecycle
Provides communication adapter instances for vehicles to be controlled.
-
Method Summary
Modifier and Type Method Description VehicleCommAdapter
getAdapterFor(Vehicle vehicle)
Returns a communication adapter for controlling the given vehicle.VehicleCommAdapterDescription
getDescription()
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.Methods inherited from interface org.opentcs.components.Lifecycle
initialize, isInitialized, terminate
-
Method Details
-
getDescription
VehicleCommAdapterDescription getDescription()Returns aVehicleCommAdapterDescription
for the factory/the adapters provided.- Returns:
- A
VehicleCommAdapterDescription
for the factory/the adapters provided.
-
providesAdapterFor
Checks whether this factory can provide a communication adapter for the given vehicle.- Parameters:
vehicle
- The vehicle to check for.- Returns:
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.- Parameters:
vehicle
- The vehicle to be controlled.- Returns:
- A communication adapter for controlling the given vehicle, or
null
, if this factory cannot provide an adapter for it.
-