Package org.opentcs.drivers.vehicle
Schnittstelle VehicleDataTransformerFactory
public interface VehicleDataTransformerFactory
Provides matching
MovementCommandTransformer
and IncomingPoseTransformer
instances.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateIncomingPoseTransformer
(Vehicle vehicle) Creates aIncomingPoseTransformer
for the given vehicle.createMovementCommandTransformer
(Vehicle vehicle) Creates aMovementCommandTransformer
for the given vehicle.getName()
Returns the name of this factory.boolean
providesTransformersFor
(Vehicle vehicle) Checks if anIncomingPoseTransformer
andMovementCommandTransformer
can be created for the given vehicle.
-
Methodendetails
-
getName
Returns the name of this factory.- Gibt zurück:
- The name of this factory.
-
createMovementCommandTransformer
@Nonnull MovementCommandTransformer createMovementCommandTransformer(@Nonnull Vehicle vehicle) throws IllegalArgumentException Creates aMovementCommandTransformer
for the given vehicle.- Parameter:
vehicle
- The vehicle to create the transformer for.- Gibt zurück:
- The newly created transformer.
- Löst aus:
IllegalArgumentException
- If a transformer cannot be created for the given vehicle.
-
createIncomingPoseTransformer
@Nonnull IncomingPoseTransformer createIncomingPoseTransformer(@Nonnull Vehicle vehicle) throws IllegalArgumentException Creates aIncomingPoseTransformer
for the given vehicle.- Parameter:
vehicle
- The vehicle to create the transformer for.- Gibt zurück:
- The newly created transformer.
- Löst aus:
IllegalArgumentException
- If a transformer cannot be created for the given vehicle.
-
providesTransformersFor
Checks if anIncomingPoseTransformer
andMovementCommandTransformer
can be created for the given vehicle.- Parameter:
vehicle
- The vehicle to create the transformer for.- Gibt zurück:
true
when both transformers can be created.
-