Class VehicleAttachmentEvent
java.lang.Object
org.opentcs.drivers.vehicle.management.CommAdapterEvent
org.opentcs.drivers.vehicle.management.VehicleAttachmentEvent
- All Implemented Interfaces:
Serializable,LowLevelCommunicationEvent
Instances of this class represent events emitted by/for attaching comm adapters.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVehicleAttachmentEvent(String vehicleName, VehicleAttachmentInformation attachmentInformation) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns theVehicleAttachmentInformationto the actual attachment.Returns the vehicle's name a comm adapter has been attached to.
-
Constructor Details
-
VehicleAttachmentEvent
public VehicleAttachmentEvent(@Nonnull String vehicleName, @Nonnull VehicleAttachmentInformation attachmentInformation) Creates a new instance.- Parameters:
vehicleName- The vehicle's name a comm adapter has been attached to.attachmentInformation- The information to the actual attachment.
-
-
Method Details
-
getVehicleName
Returns the vehicle's name a comm adapter has been attached to.- Returns:
- The vehicle's name a comm adapter has been attached to.
-
getAttachmentInformation
Returns theVehicleAttachmentInformationto the actual attachment.- Returns:
- The
VehicleAttachmentInformationto the actual attachment.
-