Package org.opentcs.drivers.vehicle
Class VehicleCommAdapterEvent
java.lang.Object
org.opentcs.drivers.vehicle.VehicleCommAdapterEvent
- All Implemented Interfaces:
Serializable
An event emitted by a communication adapter.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVehicleCommAdapterEvent
(String adapterName) Creates a new instance without an appendix.VehicleCommAdapterEvent
(String adapterName, Serializable appendix) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the adapter that emitted this event.Returns the (optional) appendix containing additional arbitrary information about the event.toString()
-
Constructor Details
-
VehicleCommAdapterEvent
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
Creates a new instance without an appendix.- Parameters:
adapterName
- The name of the adapter that emitted this event.
-
-
Method Details
-
getAdapterName
Returns the name of the adapter that emitted this event.- Returns:
- The name of the adapter that emitted this event.
-
getAppendix
Returns the (optional) appendix containing additional arbitrary information about the event.- Returns:
- The (optional) appendix containing additional arbitrary information about the event.
-
toString
-