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 VehicleAttachmentInformationgetAttachmentInformation()Returns theVehicleAttachmentInformationto the actual attachment.VehicleAttachmentInformationgetUpdatedAttachmentInformation()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 theAttachmentInformationto the actual attachment.- Overrides:
getUpdatedAttachmentInformationin classAttachmentEvent- Returns:
- The
AttachmentInformationto the actual attachment.
-
getAttachmentInformation
Returns theVehicleAttachmentInformationto the actual attachment.- Returns:
- The
VehicleAttachmentInformationto the actual attachment.
-