Class InitPositionCommand
java.lang.Object
org.opentcs.drivers.vehicle.commands.InitPositionCommand
- All Implemented Interfaces:
java.io.Serializable
,AdapterCommand
public class InitPositionCommand extends java.lang.Object implements AdapterCommand
A command for initializing the comm adapter's position.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description InitPositionCommand(java.lang.String position)
Creates a new instance. -
Method Summary
Modifier and Type Method Description void
execute(VehicleCommAdapter adapter)
Executes the command.
-
Constructor Details
-
InitPositionCommand
public InitPositionCommand(@Nonnull java.lang.String position)Creates a new instance.- Parameters:
position
- The position to set.
-
-
Method Details
-
execute
Description copied from interface:AdapterCommand
Executes the command.- Specified by:
execute
in interfaceAdapterCommand
- Parameters:
adapter
- The comm adapter to execute the command with.
-