Class DtoOperatorAvailability

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoOperatorAvailability
All Implemented Interfaces:
IDtoOperatorAvailability

public class DtoOperatorAvailability extends Object implements IDtoOperatorAvailability
A stretch of time when attention and or skills are made available to an operator.
  • Constructor Details

    • DtoOperatorAvailability

      protected DtoOperatorAvailability()
    • DtoOperatorAvailability

      public DtoOperatorAvailability(String[] skills, Integer attention)
  • Method Details

    • getStart

      public Long getStart()
      From this time... (end greater than start). Default is Timestamp::MIN
      Specified by:
      getStart in interface IDtoOperatorAvailability
    • setStart

      public void setStart(Long start)
      From this time... (end greater than start). Default is Timestamp::MIN
      Specified by:
      setStart in interface IDtoOperatorAvailability
    • getEnd

      public Long getEnd()
      ...until this time (end greater than start). Default is Timestamp::MAX
      Specified by:
      getEnd in interface IDtoOperatorAvailability
    • setEnd

      public void setEnd(Long end)
      ...until this time (end greater than start). Default is Timestamp::MAX
      Specified by:
      setEnd in interface IDtoOperatorAvailability
    • getSkills

      public String[] getSkills()
      List of skills that the operator gains for this stretch of time.
      Specified by:
      getSkills in interface IDtoOperatorAvailability
    • setSkills

      public void setSkills(String[] skills)
      List of skills that the operator gains for this stretch of time.
      Specified by:
      setSkills in interface IDtoOperatorAvailability
    • getAttention

      public Integer getAttention()
      Total attention that the operator gains for this stretch of time. (e.g. 200 if you want to group two identical operators with attention 100 into one).
      Specified by:
      getAttention in interface IDtoOperatorAvailability
    • setAttention

      public void setAttention(Integer attention)
      Total attention that the operator gains for this stretch of time. (e.g. 200 if you want to group two identical operators with attention 100 into one).
      Specified by:
      setAttention in interface IDtoOperatorAvailability
    • withStart

      public DtoOperatorAvailability withStart(Long start)
      From this time... (end greater than start). Default is Timestamp::MIN
    • withEnd

      public DtoOperatorAvailability withEnd(Long end)
      ...until this time (end greater than start). Default is Timestamp::MAX
    • withSkills

      public DtoOperatorAvailability withSkills(String[] skills)
      List of skills that the operator gains for this stretch of time.
    • withAttention

      public DtoOperatorAvailability withAttention(Integer attention)
      Total attention that the operator gains for this stretch of time. (e.g. 200 if you want to group two identical operators with attention 100 into one).
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object