Class DtoDeviceReservation

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoDeviceReservation
All Implemented Interfaces:
IDtoDeviceReservation

public class DtoDeviceReservation extends Object implements IDtoDeviceReservation
A strech of time where a device must interrupt (i.e. pause) the currently executing setup, run or teardown of the current task. Only interruptible processes / fixedJobs may be allocated in a way that overlaps a DtoDeviceReservation. No special deviceState is required at this time; deviceState is not changed during this time.
  • Constructor Details

    • DtoDeviceReservation

      protected DtoDeviceReservation()
    • DtoDeviceReservation

      public DtoDeviceReservation(String id)
  • Method Details

    • getId

      public String getId()
      Unique identifier among all DtoDeviceReservation
      Specified by:
      getId in interface IDtoDeviceReservation
    • setId

      public void setId(String id)
      Unique identifier among all DtoDeviceReservation
      Specified by:
      setId in interface IDtoDeviceReservation
    • getStart

      public Long getStart()
      Start of the reservation (start smaller than end). Default is Timestamp::MIN
      Specified by:
      getStart in interface IDtoDeviceReservation
    • setStart

      public void setStart(Long start)
      Start of the reservation (start smaller than end). Default is Timestamp::MIN
      Specified by:
      setStart in interface IDtoDeviceReservation
    • getEnd

      public Long getEnd()
      End of the reservation (start smaller than end). Default is Timestamp::MAX
      Specified by:
      getEnd in interface IDtoDeviceReservation
    • setEnd

      public void setEnd(Long end)
      End of the reservation (start smaller than end). Default is Timestamp::MAX
      Specified by:
      setEnd in interface IDtoDeviceReservation
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withId

      public DtoDeviceReservation withId(String id)
      Unique identifier among all DtoDeviceReservation
    • withStart

      public DtoDeviceReservation withStart(Long start)
      Start of the reservation (start smaller than end). Default is Timestamp::MIN
    • withEnd

      public DtoDeviceReservation withEnd(Long end)
      End of the reservation (start smaller than end). Default is Timestamp::MAX