Klasse PeripheralJobCreationTO
java.lang.Object
org.opentcs.access.to.CreationTO
org.opentcs.access.to.peripherals.PeripheralJobCreationTO
- Alle implementierten Schnittstellen:
Serializable
A transfer object describing a peripheral job.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungPeripheralJobCreationTO
(String name, String reservationToken, PeripheralOperationCreationTO peripheralOperation) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the operation that is to be performed by the pripheral device.Returns the name of the transport order for which this peripheral job is to be created.Returns the name of the vehicle for which this peripheral job is to be created.Returns the token that may be used to reserve a peripheral device.boolean
Indicates whether the name is incomplete and requires to be completed when creating the actual transport order.withIncompleteName
(boolean incompleteName) Creates a copy of this object, with the given incomplete name flag.Creates a copy of this object with the given name.withPeripheralOperation
(PeripheralOperationCreationTO peripheralOperation) Creates a copy of this object, with the given peripheral 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.withRelatedTransportOrderName
(String relatedTransportOrderName) Creates a copy of this object, with the given related transport order name.withRelatedVehicleName
(String relatedVehicleName) Creates a copy of this object, with the given related vehicle name.withReservationToken
(String reservationToken) Creates a copy of this object, with the given reservation token.Von Klasse geerbte Methoden org.opentcs.access.to.CreationTO
getModifiableProperties, getName, getProperties, listWithAppendix, mapWithMapping, propertiesWith
-
Konstruktordetails
-
PeripheralJobCreationTO
public PeripheralJobCreationTO(@Nonnull String name, @Nonnull String reservationToken, @Nonnull PeripheralOperationCreationTO peripheralOperation) Creates a new instance.- Parameter:
name
- The name of this peripheral job.reservationToken
- The reservation token to be used.peripheralOperation
- The peripheral operation to be performed.
-
-
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.
-
hasIncompleteName
public boolean hasIncompleteName()Indicates whether the name is incomplete and requires to be completed when creating the actual transport order. (How exactly this is done is decided by the kernel.)- Gibt zurück:
true
if, and only if, the name is incomplete and requires to be completed by the kernel.
-
withIncompleteName
Creates a copy of this object, with the given incomplete name flag.- Parameter:
incompleteName
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getReservationToken
Returns the token that may be used to reserve a peripheral device.- Gibt zurück:
- The token that may be used to reserve a peripheral device.
-
withReservationToken
Creates a copy of this object, with the given reservation token.- Parameter:
reservationToken
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getRelatedVehicleName
Returns the name of the vehicle for which this peripheral job is to be created.- Gibt zurück:
- The name of the vehicle for which this peripheral job is to be created.
-
withRelatedVehicleName
Creates a copy of this object, with the given related vehicle name.- Parameter:
relatedVehicleName
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getRelatedTransportOrderName
Returns the name of the transport order for which this peripheral job is to be created.- Gibt zurück:
- The name of the transport order for which this peripheral job is to be created.
-
withRelatedTransportOrderName
public PeripheralJobCreationTO withRelatedTransportOrderName(@Nullable String relatedTransportOrderName) Creates a copy of this object, with the given related transport order name.- Parameter:
relatedTransportOrderName
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getPeripheralOperation
Returns the operation that is to be performed by the pripheral device.- Gibt zurück:
- The operation that is to be performed by the pripheral device.
-
withPeripheralOperation
public PeripheralJobCreationTO withPeripheralOperation(PeripheralOperationCreationTO peripheralOperation) Creates a copy of this object, with the given peripheral operation.- Parameter:
peripheralOperation
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-