Package org.cswteams.ms3.entity
Class Schedule
java.lang.Object
org.cswteams.ms3.entity.Schedule
This class represents a shift schedule in an interval of dates
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSchedule()Constructor needed for Spring @Entity annotation.Schedule(Long startDate, Long endDate, List<ConcreteShift> concreteShifts) Constructor needed when we want to create a schedule without any violated constraintSchedule(Long startDate, Long endDate, List<ConcreteShift> concreteShifts, List<Constraint> violatedConstraints) Class representing a valid schedule -
Method Summary
-
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 scheduleendDate- Date of the ending of the scheduleconcreteShifts- 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
Constructor needed when we want to create a schedule without any violated constraint- Parameters:
startDate- Date of the beginning of the scheduleendDate- Date of the ending of the scheduleconcreteShifts- 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).
-