Class DtoOperator

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoOperator
All Implemented Interfaces:
IDtoOperator

public class DtoOperator extends Object implements IDtoOperator
Initial state of one operator. An operator is allowed to distribut its available attention freely over its available skills at any time. At every time, for every skill, the attention given by all operators in sum needs to reach at least the required attention in sum at that time for that skill.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Unique identifier among all DtoOperator.
      Specified by:
      getId in interface IDtoOperator
    • setId

      public void setId(String id)
      Unique identifier among all DtoOperator.
      Specified by:
      setId in interface IDtoOperator
    • getAvailabilities

      public IDtoOperatorAvailability[] getAvailabilities()
      Positive list of when this operator is available, with how much attention and on what skills. In intersecting availabilities the set of skills is aggregated (union) and the attention is added up independent on skills. E.g. you could define available skills and available attentions in one time slot in different DtoOperatorAvailability objects.
      Specified by:
      getAvailabilities in interface IDtoOperator
    • setAvailabilities

      public void setAvailabilities(IDtoOperatorAvailability[] availabilities)
      Positive list of when this operator is available, with how much attention and on what skills. In intersecting availabilities the set of skills is aggregated (union) and the attention is added up independent on skills. E.g. you could define available skills and available attentions in one time slot in different DtoOperatorAvailability objects.
      Specified by:
      setAvailabilities in interface IDtoOperator
    • getSkillRevocations

      public IDtoSkillRevocation[] getSkillRevocations()
      Times when this operator is not allowed to use some skills.
      Specified by:
      getSkillRevocations in interface IDtoOperator
    • setSkillRevocations

      public void setSkillRevocations(IDtoSkillRevocation[] skillRevocations)
      Times when this operator is not allowed to use some skills.
      Specified by:
      setSkillRevocations in interface IDtoOperator
    • getReservations

      public IDtoOperatorReservation[] getReservations()
      times when this operator is not working with full attention.
      Specified by:
      getReservations in interface IDtoOperator
    • setReservations

      public void setReservations(IDtoOperatorReservation[] reservations)
      times when this operator is not working with full attention.
      Specified by:
      setReservations in interface IDtoOperator
    • equals

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

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

      public DtoOperator withId(String id)
      Unique identifier among all DtoOperator.
    • withAvailabilities

      public DtoOperator withAvailabilities(IDtoOperatorAvailability[] availabilities)
      Positive list of when this operator is available, with how much attention and on what skills. In intersecting availabilities the set of skills is aggregated (union) and the attention is added up independent on skills. E.g. you could define available skills and available attentions in one time slot in different DtoOperatorAvailability objects.
    • withSkillRevocations

      public DtoOperator withSkillRevocations(IDtoSkillRevocation[] skillRevocations)
      Times when this operator is not allowed to use some skills.
    • withReservations

      public DtoOperator withReservations(IDtoOperatorReservation[] reservations)
      times when this operator is not working with full attention.