Klasse VehicleAttachmentInformation

java.lang.Object
org.opentcs.drivers.vehicle.management.VehicleAttachmentInformation
Alle implementierten Schnittstellen:
Serializable

public class VehicleAttachmentInformation extends Object implements Serializable
Describes which communication adapter a vehicle is currently associated with and which adapters are available.
Siehe auch:
  • 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

      @Nonnull public TCSObjectReference<Vehicle> 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

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

      @Nonnull public VehicleCommAdapterDescription 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.