Class DtoDeviceCapacity

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoDeviceCapacity
All Implemented Interfaces:
IDtoDeviceCapacity

public class DtoDeviceCapacity extends Object implements IDtoDeviceCapacity
Details about a device that allows processes to run in parallel, only restricted by some maximal capacity.
  • Constructor Details

    • DtoDeviceCapacity

      protected DtoDeviceCapacity()
    • DtoDeviceCapacity

      public DtoDeviceCapacity(Integer maximalValue)
  • Method Details

    • getMaximalValue

      public Integer getMaximalValue()
      Maximal capacity (at all times, sum over all needed capacities of all executed jobs must be smaller or equal to this).
      Specified by:
      getMaximalValue in interface IDtoDeviceCapacity
    • setMaximalValue

      public void setMaximalValue(Integer maximalValue)
      Maximal capacity (at all times, sum over all needed capacities of all executed jobs must be smaller or equal to this).
      Specified by:
      setMaximalValue in interface IDtoDeviceCapacity
    • equals

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

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

      public DtoDeviceCapacity withMaximalValue(Integer maximalValue)
      Maximal capacity (at all times, sum over all needed capacities of all executed jobs must be smaller or equal to this).