Package org.opentcs.drivers.vehicle
Interface VehicleCommAdapterFactory
- All Superinterfaces:
Lifecycle
Provides communication adapter instances for vehicles to be controlled.
-
Method Summary
Modifier and TypeMethodDescriptiongetAdapterFor(Vehicle vehicle) Returns a communication adapter for controlling the given vehicle.Returns aVehicleCommAdapterDescriptionfor the factory/the adapters provided.booleanprovidesAdapterFor(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 aVehicleCommAdapterDescriptionfor the factory/the adapters provided.- Returns:
- A
VehicleCommAdapterDescriptionfor 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:
trueif, 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.
-