Package org.opentcs.drivers.vehicle
Class DefaultVehicleCommAdapterDescription
java.lang.Object
org.opentcs.drivers.vehicle.VehicleCommAdapterDescription
org.opentcs.drivers.vehicle.DefaultVehicleCommAdapterDescription
- All Implemented Interfaces:
Serializable
The default implementation of
VehicleCommAdapterDescription
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultVehicleCommAdapterDescription
(String description, boolean isSimVehicleCommAdapter) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description for a vehicle comm adapter.boolean
Whether the comm adapter is a simulating one.Methods inherited from class org.opentcs.drivers.vehicle.VehicleCommAdapterDescription
equals, hashCode
-
Constructor Details
-
DefaultVehicleCommAdapterDescription
public DefaultVehicleCommAdapterDescription(@Nonnull String description, boolean isSimVehicleCommAdapter) Creates a new instance.- Parameters:
description
- The description.isSimVehicleCommAdapter
- Whether the comm adapter is a simulating one.
-
-
Method Details
-
getDescription
Description copied from class:VehicleCommAdapterDescription
Returns the description for a vehicle comm adapter.- Specified by:
getDescription
in classVehicleCommAdapterDescription
- Returns:
- The description for a vehicle comm adapter.
-
isSimVehicleCommAdapter
public boolean isSimVehicleCommAdapter()Description copied from class:VehicleCommAdapterDescription
Whether the comm adapter is a simulating one.- Specified by:
isSimVehicleCommAdapter
in classVehicleCommAdapterDescription
- Returns:
true
if, and only if, the vehicle is a simulating one.
-