Klasse PeripheralAttachmentInformation

java.lang.Object
org.opentcs.drivers.peripherals.management.PeripheralAttachmentInformation
Alle implementierten Schnittstellen:
Serializable

public class PeripheralAttachmentInformation extends Object implements Serializable
Describes which communication adapter a location is currently associated with.
Siehe auch:
  • 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

      @Nonnull public TCSResourceReference<Location> 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

      @Nonnull public List<PeripheralCommAdapterDescription> 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

      @Nonnull public PeripheralCommAdapterDescription 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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object