Class ConstraintUbiquita


@Entity public class ConstraintUbiquita extends ConstraintAssegnazioneTurnoTurno
  • Constructor Details

    • ConstraintUbiquita

      public ConstraintUbiquita()
  • Method Details

    • verifyConstraint

      public void verifyConstraint(ContextConstraint context) throws ViolatedConstraintException
      This method checks if Ubiquita constraint is respected while inserting a new concrete shift into a schedule.
      Specified by:
      verifyConstraint in class Constraint
      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