Package org.cswteams.ms3.entity
Class Shift
java.lang.Object
org.cswteams.ms3.entity.Shift
An "abstract" shift (i.e., the raw time slot, planned and recurring by specific weekdays,
that will be assigned to some
Doctors after schedule generation), that can be istantiated
into schedules via ConcreteShift.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShift()Default constructor needed by LombokShift(Long id, TimeSlot timeSlot, LocalTime startTime, Duration duration, Set<DayOfWeek> daysOfWeek, MedicalService medicalService, List<QuantityShiftSeniority> quantityShiftSeniority, List<AdditionalConstraint> additionalConstraints) Abstract concept of shift, created by the configurator
This constructor is useful forShift(LocalTime StartTime, Duration duration, MedicalService medicalService, TimeSlot timeSlot, List<QuantityShiftSeniority> quantityShiftSeniority, Set<DayOfWeek> daysOfWeek, List<AdditionalConstraint> additionalConstraints) Abstract concept of shift, created by the configurator -
Method Summary
-
Constructor Details
-
Shift
public Shift(LocalTime StartTime, Duration duration, MedicalService medicalService, TimeSlot timeSlot, List<QuantityShiftSeniority> quantityShiftSeniority, Set<DayOfWeek> daysOfWeek, List<AdditionalConstraint> additionalConstraints) Abstract concept of shift, created by the configurator- Parameters:
StartTime- hh:mm:ss when the shift will startduration- Duration of the shift in hh:mm:ssmedicalService- The medicalService to be provided in a shifttimeSlot- Moment of the day in which the shift will take place (morning, afternoon, night)quantityShiftSeniority- Quantity of doctors needed in the shift for each type of senioritydaysOfWeek- List of days in which this shift will take placeadditionalConstraints- List of additional constraints which are specific of a shift (E.g. No over 62, for a risky operation)
-
Shift
public Shift(Long id, TimeSlot timeSlot, LocalTime startTime, Duration duration, Set<DayOfWeek> daysOfWeek, MedicalService medicalService, List<QuantityShiftSeniority> quantityShiftSeniority, List<AdditionalConstraint> additionalConstraints) Abstract concept of shift, created by the configurator
This constructor is useful for- Parameters:
id- The id of the shifttimeSlot- Moment of the day in which the shift will take place (morning, afternoon, night)startTime- hh:mm:ss when the shift will startduration- Duration of the shift in hh:mm:ssdaysOfWeek- List of days in which this shift will take placemedicalService- The medicalService to be provided in a shiftquantityShiftSeniority- Quantity of doctors needed in the shift for each type of seniority and each task in the medicalServiceadditionalConstraints- List of additional constraints which are specific of a shift (E.g. No over 62, for a risky operation)
-
Shift
protected Shift()Default constructor needed by Lombok
-