Class ConstraintNumeroDiRuoloTurno
java.lang.Object
org.cswteams.ms3.entity.constraint.Constraint
org.cswteams.ms3.entity.constraint.ConstraintNumeroDiRuoloTurno
This class implements the check of the number of doctors of each seniority in a concrete shift.
It defines how many doctors foreach seniority have to be associated to each concrete shift.
For instance, nocturne shifts in ward must have one specialist and one structured on duty and
one specialist and one structured on call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidverifyConstraint(ContextConstraint context) This method checks if numeroDiRuoloTurno constraint is respected while inserting a new concrete shift into a schedule.
-
Constructor Details
-
ConstraintNumeroDiRuoloTurno
public ConstraintNumeroDiRuoloTurno()
-
-
Method Details
-
verifyConstraint
This method checks if numeroDiRuoloTurno constraint is respected while inserting a new concrete shift into a schedule.- Specified by:
verifyConstraintin classConstraint- Parameters:
context- Object comprehending the new concrete shift to be assigned and the information about doctor's state in the corresponding schedule- Throws:
ViolatedConstraintException- Exception thrown if the constraint is violated
-