Class AttachmentEvent
java.lang.Object
org.opentcs.drivers.vehicle.management.CommAdapterEvent
org.opentcs.drivers.vehicle.management.AttachmentEvent
- All Implemented Interfaces:
java.io.Serializable
,LowLevelCommunicationEvent
public class AttachmentEvent extends CommAdapterEvent implements java.io.Serializable
Instances of this class represent events emitted by/for attaching comm adapters.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AttachmentEvent(java.lang.String vehicleName, AttachmentInformation updatedAttachmentInformation)
Creates a new instance. -
Method Summary
Modifier and Type Method Description AttachmentInformation
getUpdatedAttachmentInformation()
Returns theAttachmentInformation
to the actual attachment.java.lang.String
getVehicleName()
Returns the vehicle's name a comm adapter has been attached to.
-
Constructor Details
-
AttachmentEvent
public AttachmentEvent(@Nonnull java.lang.String vehicleName, @Nonnull AttachmentInformation updatedAttachmentInformation)Creates a new instance.- Parameters:
vehicleName
- The vehicle's name a comm adapter has been attached to.updatedAttachmentInformation
- The information to the actual attachment.
-
-
Method Details
-
getVehicleName
public java.lang.String 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.
-
getUpdatedAttachmentInformation
Returns theAttachmentInformation
to the actual attachment.- Returns:
- The
AttachmentInformation
to the actual attachment.
-