Klasse VehicleAttachmentInformation
java.lang.Object
org.opentcs.drivers.vehicle.management.VehicleAttachmentInformation
- Alle implementierten Schnittstellen:
Serializable
Describes which communication adapter a vehicle is currently associated with and which adapters
are available.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungVehicleAttachmentInformation
(TCSObjectReference<Vehicle> vehicleReference, List<VehicleCommAdapterDescription> availableCommAdapters, VehicleCommAdapterDescription attachedCommAdapter) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the comm adapter attached to the referenced vehicle.Returns the list of comm adapters available to be attached to the referenced vehicle.Returns the vehicle this attachment information belongs to.withAttachedCommAdapter
(VehicleCommAdapterDescription attachedCommAdapter) Creates a copy of this object with the given attached comm adapter.withAvailableCommAdapters
(List<VehicleCommAdapterDescription> availableCommAdapters) Creates a copy of this object with the given available comm adapters.withVehicleReference
(TCSObjectReference<Vehicle> vehicleReference) Creates a copy of this object with the given vehicle reference.
-
Konstruktordetails
-
VehicleAttachmentInformation
public VehicleAttachmentInformation(@Nonnull TCSObjectReference<Vehicle> vehicleReference, @Nonnull List<VehicleCommAdapterDescription> availableCommAdapters, @Nonnull VehicleCommAdapterDescription attachedCommAdapter) Creates a new instance.- Parameter:
vehicleReference
- The vehicle this attachment information belongs to.availableCommAdapters
- The list of comm adapters available to be attached to the referenced vehicle.attachedCommAdapter
- The comm adapter attached to the referenced vehicle.
-
-
Methodendetails
-
getVehicleReference
Returns the vehicle this attachment information belongs to.- Gibt zurück:
- The vehicle this attachment information belongs to.
-
withVehicleReference
public VehicleAttachmentInformation withVehicleReference(TCSObjectReference<Vehicle> vehicleReference) Creates a copy of this object with the given vehicle reference.- Parameter:
vehicleReference
- The new vehicle reference.- Gibt zurück:
- A copy of this object, differing in the given vehicle reference.
-
getAvailableCommAdapters
Returns the list of comm adapters available to be attached to the referenced vehicle.- Gibt zurück:
- The list of comm adapters available to be attached to the referenced vehicle.
-
withAvailableCommAdapters
public VehicleAttachmentInformation withAvailableCommAdapters(@Nonnull List<VehicleCommAdapterDescription> availableCommAdapters) Creates a copy of this object with the given available comm adapters.- Parameter:
availableCommAdapters
- The new available comm adapters.- Gibt zurück:
- A copy of this object, differing in the given available comm adapters.
-
getAttachedCommAdapter
Returns the comm adapter attached to the referenced vehicle.- Gibt zurück:
- The comm adapter attached to the referenced vehicle.
-
withAttachedCommAdapter
public VehicleAttachmentInformation withAttachedCommAdapter(@Nonnull VehicleCommAdapterDescription attachedCommAdapter) Creates a copy of this object with the given attached comm adapter.- Parameter:
attachedCommAdapter
- The new attached comm adapter.- Gibt zurück:
- A copy of this object, differing in the given attached comm adapter.
-