Class DtoOperator
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoOperator
- All Implemented Interfaces:
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 Summary
ConstructorsModifierConstructorDescriptionprotectedDtoOperator(String id, IDtoOperatorAvailability[] availabilities) -
Method Summary
Modifier and TypeMethodDescriptionbooleanPositive list of when this operator is available, with how much attention and on what skills.getId()Unique identifier among all DtoOperator.times when this operator is not working with full attention.Times when this operator is not allowed to use some skills.inthashCode()voidsetAvailabilities(IDtoOperatorAvailability[] availabilities) Positive list of when this operator is available, with how much attention and on what skills.voidUnique identifier among all DtoOperator.voidsetReservations(IDtoOperatorReservation[] reservations) times when this operator is not working with full attention.voidsetSkillRevocations(IDtoSkillRevocation[] skillRevocations) Times when this operator is not allowed to use some skills.withAvailabilities(IDtoOperatorAvailability[] availabilities) Positive list of when this operator is available, with how much attention and on what skills.Unique identifier among all DtoOperator.withReservations(IDtoOperatorReservation[] reservations) times when this operator is not working with full attention.withSkillRevocations(IDtoSkillRevocation[] skillRevocations) Times when this operator is not allowed to use some skills.
-
Constructor Details
-
DtoOperator
protected DtoOperator() -
DtoOperator
-
-
Method Details
-
getId
Unique identifier among all DtoOperator.- Specified by:
getIdin interfaceIDtoOperator
-
setId
Unique identifier among all DtoOperator.- Specified by:
setIdin interfaceIDtoOperator
-
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:
getAvailabilitiesin interfaceIDtoOperator
-
setAvailabilities
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:
setAvailabilitiesin interfaceIDtoOperator
-
getSkillRevocations
Times when this operator is not allowed to use some skills.- Specified by:
getSkillRevocationsin interfaceIDtoOperator
-
setSkillRevocations
Times when this operator is not allowed to use some skills.- Specified by:
setSkillRevocationsin interfaceIDtoOperator
-
getReservations
times when this operator is not working with full attention.- Specified by:
getReservationsin interfaceIDtoOperator
-
setReservations
times when this operator is not working with full attention.- Specified by:
setReservationsin interfaceIDtoOperator
-
equals
-
hashCode
public int hashCode() -
withId
Unique identifier among all DtoOperator. -
withAvailabilities
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
Times when this operator is not allowed to use some skills. -
withReservations
times when this operator is not working with full attention.
-