Class VehicleAttachmentEvent
java.lang.Object
org.opentcs.drivers.vehicle.management.CommAdapterEvent
org.opentcs.drivers.vehicle.management.AttachmentEvent
org.opentcs.drivers.vehicle.management.VehicleAttachmentEvent
- All Implemented Interfaces:
java.io.Serializable
,LowLevelCommunicationEvent
public class VehicleAttachmentEvent extends AttachmentEvent
Instances of this class represent events emitted by/for attaching comm adapters.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description VehicleAttachmentEvent(java.lang.String vehicleName, VehicleAttachmentInformation attachmentInformation)
Creates a new instance. -
Method Summary
Modifier and Type Method Description VehicleAttachmentInformation
getAttachmentInformation()
Returns theVehicleAttachmentInformation
to the actual attachment.VehicleAttachmentInformation
getUpdatedAttachmentInformation()
Deprecated.UsegetAttachmentInformation()
instead.
-
Constructor Details
-
VehicleAttachmentEvent
public VehicleAttachmentEvent(@Nonnull java.lang.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
-
getUpdatedAttachmentInformation
@Deprecated @ScheduledApiChange(details="Will be removed.", when="6.0") public VehicleAttachmentInformation getUpdatedAttachmentInformation()Deprecated.UsegetAttachmentInformation()
instead.Returns theAttachmentInformation
to the actual attachment.- Overrides:
getUpdatedAttachmentInformation
in classAttachmentEvent
- Returns:
- The
AttachmentInformation
to the actual attachment.
-
getAttachmentInformation
Returns theVehicleAttachmentInformation
to the actual attachment.- Returns:
- The
VehicleAttachmentInformation
to the actual attachment.
-