Package org.opentcs.drivers.peripherals
Interface PeripheralCommAdapterFactory
- All Superinterfaces:
Lifecycle
Provides communication adapter instances for peripheral devices to be controlled.
-
Method Summary
Modifier and TypeMethodDescriptiongetAdapterFor(Location location) Returns a communication adapter for controlling the given location/peripheral device.Returns aPeripheralCommAdapterDescriptionfor the factory/the adapters provided.booleanprovidesAdapterFor(Location location) Checks whether this factory can provide a communication adapter for the given location/peripheral device.Methods inherited from interface org.opentcs.components.Lifecycle
initialize, isInitialized, terminate
-
Method Details
-
getDescription
Returns aPeripheralCommAdapterDescriptionfor the factory/the adapters provided.- Returns:
- A
PeripheralCommAdapterDescriptionfor the factory/the adapters provided.
-
providesAdapterFor
Checks whether this factory can provide a communication adapter for the given location/peripheral device.- Parameters:
location- The location to check for.- Returns:
trueif, and only if, this factory can provide a communication adapter to control the given location/peripheral device.
-
getAdapterFor
Returns a communication adapter for controlling the given location/peripheral device.- Parameters:
location- The location/peripheral device to be controlled.- Returns:
- A communication adapter for controlling the given location/peripheral device, or
null, if this factory cannot provide an adapter for it.
-