Class ConstraintHoliday
java.lang.Object
org.cswteams.ms3.entity.constraint.Constraint
org.cswteams.ms3.entity.constraint.ConstraintHoliday
This constraint is to make sure that a doctor who worked on a certain holiday
in the previous year is not assigned to a shift corresponding to the same holiday.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidverifyConstraint(ContextConstraint context) Check if the constraint is violated.
-
Constructor Details
-
ConstraintHoliday
public ConstraintHoliday()
-
-
Method Details
-
verifyConstraint
Description copied from class:ConstraintCheck if the constraint is violated.- Specified by:
verifyConstraintin classConstraint- Throws:
ViolatedConstraintException- if the constraint is violated.
-