Class EmployeeConsecutiveAssignmentEnd
java.lang.Object
org.optaplanner.examples.nurserostering.optional.score.EmployeeConsecutiveAssignmentEnd
- All Implemented Interfaces:
Comparable<EmployeeConsecutiveAssignmentEnd>
public class EmployeeConsecutiveAssignmentEnd
extends Object
implements Comparable<EmployeeConsecutiveAssignmentEnd>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintstatic intgetDistanceToLastDayOfWeekend(Employee employee, ShiftDate shiftDate) intinthashCode()booleanstatic booleanisWeekendAndNotLastDayOfWeekend(Employee employee, ShiftDate shiftDate) voidsetEmployee(Employee employee) voidsetShiftDate(ShiftDate shiftDate) toString()
-
Constructor Details
-
EmployeeConsecutiveAssignmentEnd
-
-
Method Details
-
isWeekendAndNotLastDayOfWeekend
-
getDistanceToLastDayOfWeekend
-
getEmployee
-
setEmployee
-
getShiftDate
-
setShiftDate
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<EmployeeConsecutiveAssignmentEnd>
-
toString
-
getContract
-
getShiftDateDayIndex
public int getShiftDateDayIndex() -
isWeekendAndNotLastDayOfWeekend
public boolean isWeekendAndNotLastDayOfWeekend() -
getDistanceToLastDayOfWeekend
public int getDistanceToLastDayOfWeekend()
-