This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<SolverInstance> getSolvers(String containerId); | |
| SolverInstance createSolver(String containerId, | |
| String solverId, | |
| String configFile); | |
| SolverInstance getSolverState(String containerId, | |
| String solverId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Constraint consecutiveWorkingDays(ConstraintFactory constraintFactory) { | |
| return constraintFactory.from(Employee.class) | |
| .joinSequence(Shift.class, | |
| Joiners.sequenceItemIndex(Shift::getDayIndex), | |
| Joiners.equal((employee, shift) -> Objects.equals(employee, shift.employee)) | |
| ).filter((employee, sequence<shift>) -> sequence.getLength() > employee.contract.maxConsecutiveDays) | |
| .penalizeConfigurable(MAX_CONSECUTIVE_DAYS, (employee, sequence<shift>) -> sequence.length, employee.contract.maxConsecutiveDays); | |
| } |
OlderNewer