Class Schedule

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

@Entity public class Schedule extends Object
This class represents a shift schedule in an interval of dates
  • Constructor Details

    • Schedule

      public Schedule(Long startDate, Long endDate, List<ConcreteShift> concreteShifts, List<Constraint> violatedConstraints)
      Class representing a valid schedule
      Parameters:
      startDate - Date of the beginning of the schedule
      endDate - Date of the ending of the schedule
      concreteShifts - List of shifts that compose the schedule (this is a composition, not an aggregation)
      violatedConstraints - List of constraints that have been violated by the scheduler and that should be approved by the planner
    • Schedule

      public Schedule(Long startDate, Long endDate, List<ConcreteShift> concreteShifts)
      Constructor needed when we want to create a schedule without any violated constraint
      Parameters:
      startDate - Date of the beginning of the schedule
      endDate - Date of the ending of the schedule
      concreteShifts - List of shifts that compose the schedule (This is a composition, not an aggregation)
    • Schedule

      protected Schedule()
      Constructor needed for Spring @Entity annotation. It is protected so that no one can call it (except Spring).