Klasse PeripheralOperationCreationTO
java.lang.Object
org.opentcs.access.to.CreationTO
org.opentcs.access.to.peripherals.PeripheralOperationCreationTO
- Alle implementierten Schnittstellen:
Serializable
A transfer object describing an operation to be performed by a peripheral device.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungPeripheralOperationCreationTO
(String operation, String locationName) Creates a new instance withexecutionTrigger
set toPeripheralOperation.ExecutionTrigger.IMMEDIATE
andcompletionRequired
set tofalse
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the moment at which this operation is to be performed.Returns the name of the location the peripheral device is associated with.Returns the operation to be performed by the peripheral device.boolean
Returns whether the completion of this operation is required to allow a vehicle to continue driving.withCompletionRequired
(boolean completionRequired) Creates a copy of this object, with the given completion required flag.withExecutionTrigger
(PeripheralOperation.ExecutionTrigger executionTrigger) Creates a copy of this object, with the given execution trigger.withLocationName
(String locationName) Creates a copy of this object, with the given location name.Creates a copy of this object with the given name.withOperation
(String operation) Creates a copy of this object, with the given operation.withProperties
(Map<String, String> properties) Creates a copy of this object with the given properties.withProperty
(String key, String value) Creates a copy of this object with the given property.Von Klasse geerbte Methoden org.opentcs.access.to.CreationTO
getModifiableProperties, getName, getProperties, listWithAppendix, mapWithMapping, propertiesWith
-
Konstruktordetails
-
PeripheralOperationCreationTO
Creates a new instance withexecutionTrigger
set toPeripheralOperation.ExecutionTrigger.IMMEDIATE
andcompletionRequired
set tofalse
.- Parameter:
operation
- The operation to be performed by the peripheral device.locationName
- The name of the location the peripheral device is associated with.
-
-
Methodendetails
-
withName
Beschreibung aus Klasse kopiert:CreationTO
Creates a copy of this object with the given name.- Setzt außer Kraft:
withName
in KlasseCreationTO
- Parameter:
name
- the new name- Gibt zurück:
- A copy of this object, differing in the given value.
-
withProperties
Beschreibung aus Klasse kopiert:CreationTO
Creates a copy of this object with the given properties.- Setzt außer Kraft:
withProperties
in KlasseCreationTO
- Parameter:
properties
- The properties.- Gibt zurück:
- A copy of this object with the given properties.
-
withProperty
Beschreibung aus Klasse kopiert:CreationTO
Creates a copy of this object with the given property. If value == null is true then the key-value pair is removed from the properties.- Setzt außer Kraft:
withProperty
in KlasseCreationTO
- Parameter:
key
- the key.value
- the value- Gibt zurück:
- A copy of this object that includes the given property or removes the entry, if value == null.
-
getOperation
Returns the operation to be performed by the peripheral device.- Gibt zurück:
- The operation to be performed by the peripheral device.
-
withOperation
Creates a copy of this object, with the given operation.- Parameter:
operation
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLocationName
Returns the name of the location the peripheral device is associated with.- Gibt zurück:
- The name of the location the peripheral device is associated with.
-
withLocationName
Creates a copy of this object, with the given location name.- Parameter:
locationName
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getExecutionTrigger
Returns the moment at which this operation is to be performed.- Gibt zurück:
- The moment at which this operation is to be performed.
-
withExecutionTrigger
public PeripheralOperationCreationTO withExecutionTrigger(@Nonnull PeripheralOperation.ExecutionTrigger executionTrigger) Creates a copy of this object, with the given execution trigger.This method should only be used by the vehicle controller component of the baseline project.
- Parameter:
executionTrigger
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
isCompletionRequired
public boolean isCompletionRequired()Returns whether the completion of this operation is required to allow a vehicle to continue driving.- Gibt zurück:
- Whether the completion of this operation is required to allow a vehicle to continue driving.
-
withCompletionRequired
Creates a copy of this object, with the given completion required flag.This method should only be used by the vehicle controller component of the baseline project.
- Parameter:
completionRequired
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-