Class Shift

java.lang.Object
org.cswteams.ms3.entity.Shift

@Entity public class Shift extends Object
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 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 start
      duration - Duration of the shift in hh:mm:ss
      medicalService - The medicalService to be provided in a shift
      timeSlot - 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 seniority
      daysOfWeek - List of days in which this shift will take place
      additionalConstraints - 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 shift
      timeSlot - Moment of the day in which the shift will take place (morning, afternoon, night)
      startTime - hh:mm:ss when the shift will start
      duration - Duration of the shift in hh:mm:ss
      daysOfWeek - List of days in which this shift will take place
      medicalService - The medicalService to be provided in a shift
      quantityShiftSeniority - Quantity of doctors needed in the shift for each type of seniority and each task in the medicalService
      additionalConstraints - 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