Package org.opentcs.data.peripherals
Klasse PeripheralJob
- Alle implementierten Schnittstellen:
Serializable
Represents a job that is to be processed by a peripheral device.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
Defines the various states a peripheral job may be in. -
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungPeripheralJob
(String name, String reservationToken, PeripheralOperation peripheralOperation) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the point of time at which this peripheral job was created.Returns the point of time at which processing of this peripheral job was finished.Returns the operation that is to be performed by the peripheral device.Returns the transport order for which this peripheral job was created.Returns the vehicle for which this peripheral job was created.Returns the token that may be used to reserve a peripheral device.getState()
Returns this peripheral job's current state.toString()
withCreationTime
(Instant creationTime) Creates a copy of this object, with the given creation time.withFinishedTime
(Instant finishedTime) Creates a copy of this object, with the given finished time.withHistory
(ObjectHistory history) Creates a copy of this object, with the given history.Creates a copy of this object, with the given history entry integrated.withPeripheralOperation
(PeripheralOperation 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 integrated.withRelatedTransportOrder
(TCSObjectReference<TransportOrder> relatedTransportOrder) Creates a copy of this object, with the given related transport order.withRelatedVehicle
(TCSObjectReference<Vehicle> relatedVehicle) Creates a copy of this object, with the given related vehicle.withReservationToken
(String reservationToken) Creates a copy of this object, with the given reservation token.withState
(PeripheralJob.State state) Creates a copy of this object, with the given state.Von Klasse geerbte Methoden org.opentcs.data.TCSObject
equals, getHistory, getName, getProperties, getProperty, getReference, hashCode, listWithoutNullValues, mapWithoutNullValues, propertiesWith, setWithoutNullValues
-
Konstruktordetails
-
PeripheralJob
public PeripheralJob(@Nonnull String name, @Nonnull String reservationToken, @Nonnull PeripheralOperation peripheralOperation) Creates a new instance.- Parameter:
name
- The peripheral job's name.reservationToken
- The reservation token to be used.peripheralOperation
- The operation to be performed.
-
-
Methodendetails
-
withProperty
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given property integrated.- Angegeben von:
withProperty
in KlasseTCSObject<PeripheralJob>
- Parameter:
key
- The key of the property to be changed.value
- The new value of the property, ornull
, if the property is to be removed.- Gibt zurück:
- A copy of this object, with the given property integrated.
-
withProperties
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given properties.- Angegeben von:
withProperties
in KlasseTCSObject<PeripheralJob>
- Parameter:
properties
- The properties.- Gibt zurück:
- A copy of this object, with the given properties.
-
withHistoryEntry
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given history entry integrated.- Angegeben von:
withHistoryEntry
in KlasseTCSObject<PeripheralJob>
- Parameter:
entry
- The history entry to be integrated.- Gibt zurück:
- A copy of this object, with the given history entry integrated.
-
withHistory
Beschreibung aus Klasse kopiert:TCSObject
Creates a copy of this object, with the given history.- Angegeben von:
withHistory
in KlasseTCSObject<PeripheralJob>
- Parameter:
history
- The history.- Gibt zurück:
- A copy of this object, with the given history.
-
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 reservation token to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getRelatedVehicle
Returns the vehicle for which this peripheral job was created.- Gibt zurück:
- The vehicle for which this peripheral job was created.
-
withRelatedVehicle
Creates a copy of this object, with the given related vehicle.- Parameter:
relatedVehicle
- The related vehicle to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getRelatedTransportOrder
Returns the transport order for which this peripheral job was created.- Gibt zurück:
- The transport order for which this peripheral job was created.
-
withRelatedTransportOrder
public PeripheralJob withRelatedTransportOrder(TCSObjectReference<TransportOrder> relatedTransportOrder) Creates a copy of this object, with the given related transport order.- Parameter:
relatedTransportOrder
- The related transport order 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 peripheral device.- Gibt zurück:
- The operation that is to be performed by the peripheral device.
-
withPeripheralOperation
Creates a copy of this object, with the given peripheral operation.- Parameter:
peripheralOperation
- The peripheral operation to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getState
Returns this peripheral job's current state.- Gibt zurück:
- this peripheral job's current state.
-
withState
Creates a copy of this object, with the given state.- Parameter:
state
- The state to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getCreationTime
Returns the point of time at which this peripheral job was created.- Gibt zurück:
- The point of time at which this peripheral job was created.
-
withCreationTime
Creates a copy of this object, with the given creation time.- Parameter:
creationTime
- The creation time to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getFinishedTime
Returns the point of time at which processing of this peripheral job was finished.- Gibt zurück:
- The point of time at which processing of this peripheral job was finished.
-
withFinishedTime
Creates a copy of this object, with the given finished time.- Parameter:
finishedTime
- The finished time to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
toString
- Setzt außer Kraft:
toString
in KlasseTCSObject<PeripheralJob>
-