Class VehicleCommAdapterEvent

java.lang.Object
org.opentcs.drivers.vehicle.VehicleCommAdapterEvent
All Implemented Interfaces:
Serializable

public class VehicleCommAdapterEvent extends Object implements Serializable
An event emitted by a communication adapter.
See Also:
  • Constructor Details

    • VehicleCommAdapterEvent

      public VehicleCommAdapterEvent(String adapterName, Serializable appendix)
      Creates a new instance.
      Parameters:
      adapterName - The name of the adapter that emitted this event.
      appendix - An optional appendix containing additional arbitrary information about the event.
    • VehicleCommAdapterEvent

      public VehicleCommAdapterEvent(String adapterName)
      Creates a new instance without an appendix.
      Parameters:
      adapterName - The name of the adapter that emitted this event.
  • Method Details

    • getAdapterName

      public String getAdapterName()
      Returns the name of the adapter that emitted this event.
      Returns:
      The name of the adapter that emitted this event.
    • getAppendix

      public Serializable getAppendix()
      Returns the (optional) appendix containing additional arbitrary information about the event.
      Returns:
      The (optional) appendix containing additional arbitrary information about the event.
    • toString

      public String toString()
      Overrides:
      toString in class Object