Klasse PeripheralJob

java.lang.Object
org.opentcs.data.TCSObject<PeripheralJob>
org.opentcs.data.peripherals.PeripheralJob
Alle implementierten Schnittstellen:
Serializable

public class PeripheralJob extends TCSObject<PeripheralJob> implements Serializable
Represents a job that is to be processed by a peripheral device.
Siehe auch:
  • 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

      public PeripheralJob withProperty(String key, String value)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given property integrated.
      Angegeben von:
      withProperty in Klasse TCSObject<PeripheralJob>
      Parameter:
      key - The key of the property to be changed.
      value - The new value of the property, or null, if the property is to be removed.
      Gibt zurück:
      A copy of this object, with the given property integrated.
    • withProperties

      public PeripheralJob withProperties(Map<String,String> properties)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given properties.
      Angegeben von:
      withProperties in Klasse TCSObject<PeripheralJob>
      Parameter:
      properties - The properties.
      Gibt zurück:
      A copy of this object, with the given properties.
    • withHistoryEntry

      public PeripheralJob withHistoryEntry(ObjectHistory.Entry entry)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given history entry integrated.
      Angegeben von:
      withHistoryEntry in Klasse TCSObject<PeripheralJob>
      Parameter:
      entry - The history entry to be integrated.
      Gibt zurück:
      A copy of this object, with the given history entry integrated.
    • withHistory

      public PeripheralJob withHistory(ObjectHistory history)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given history.
      Angegeben von:
      withHistory in Klasse TCSObject<PeripheralJob>
      Parameter:
      history - The history.
      Gibt zurück:
      A copy of this object, with the given history.
    • getReservationToken

      public String 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

      public PeripheralJob withReservationToken(String reservationToken)
      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

      public TCSObjectReference<Vehicle> getRelatedVehicle()
      Returns the vehicle for which this peripheral job was created.
      Gibt zurück:
      The vehicle for which this peripheral job was created.
    • withRelatedVehicle

      public PeripheralJob withRelatedVehicle(TCSObjectReference<Vehicle> relatedVehicle)
      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

      public TCSObjectReference<TransportOrder> 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

      public PeripheralOperation 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

      public PeripheralJob withPeripheralOperation(PeripheralOperation peripheralOperation)
      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

      public PeripheralJob.State getState()
      Returns this peripheral job's current state.
      Gibt zurück:
      this peripheral job's current state.
    • withState

      public PeripheralJob withState(PeripheralJob.State state)
      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

      public Instant 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

      public PeripheralJob withCreationTime(Instant creationTime)
      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

      public Instant 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

      public PeripheralJob withFinishedTime(Instant finishedTime)
      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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse TCSObject<PeripheralJob>