Klasse PeripheralAttachmentInformation
java.lang.Object
org.opentcs.drivers.peripherals.management.PeripheralAttachmentInformation
- Alle implementierten Schnittstellen:
Serializable
Describes which communication adapter a location is currently associated with.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungPeripheralAttachmentInformation
(TCSResourceReference<Location> locationReference, List<PeripheralCommAdapterDescription> availableCommAdapters, PeripheralCommAdapterDescription attachedCommAdapter) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the comm adapter attached to the referenced location.Returns the list of comm adapters available to be attached to the referenced location.Returns the location this attachment information belongs to.toString()
withAttachedCommAdapter
(PeripheralCommAdapterDescription attachedCommAdapter) Creates a copy of this object with the given attached comm adapter.withAvailableCommAdapters
(List<PeripheralCommAdapterDescription> availableCommAdapters) Creates a copy of this object with the given available comm adapters.withLocationReference
(TCSResourceReference<Location> locationReference) Creates a copy of this object with the given location reference.
-
Konstruktordetails
-
PeripheralAttachmentInformation
public PeripheralAttachmentInformation(@Nonnull TCSResourceReference<Location> locationReference, @Nonnull List<PeripheralCommAdapterDescription> availableCommAdapters, @Nonnull PeripheralCommAdapterDescription attachedCommAdapter) Creates a new instance.- Parameter:
locationReference
- The location this attachment information belongs to.availableCommAdapters
- The list of comm adapters available to be attached to the referenced location.attachedCommAdapter
- The comm adapter attached to the referenced location.
-
-
Methodendetails
-
getLocationReference
Returns the location this attachment information belongs to.- Gibt zurück:
- The location this attachment information belongs to.
-
withLocationReference
public PeripheralAttachmentInformation withLocationReference(TCSResourceReference<Location> locationReference) Creates a copy of this object with the given location reference.- Parameter:
locationReference
- The new location reference.- Gibt zurück:
- A copy of this object, differing in the given location reference.
-
getAvailableCommAdapters
Returns the list of comm adapters available to be attached to the referenced location.- Gibt zurück:
- The list of comm adapters available to be attached to the referenced location.
-
withAvailableCommAdapters
public PeripheralAttachmentInformation withAvailableCommAdapters(@Nonnull List<PeripheralCommAdapterDescription> 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 location.- Gibt zurück:
- The comm adapter attached to the referenced location.
-
withAttachedCommAdapter
public PeripheralAttachmentInformation withAttachedCommAdapter(@Nonnull PeripheralCommAdapterDescription 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.
-
toString
-