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