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 TypeMethodDescriptionint
boolean
int
static int
getDistanceToLastDayOfWeekend
(Employee employee, ShiftDate shiftDate) int
int
hashCode()
boolean
static boolean
isWeekendAndNotLastDayOfWeekend
(Employee employee, ShiftDate shiftDate) void
setEmployee
(Employee employee) void
setShiftDate
(ShiftDate shiftDate) toString()
-
Constructor Details
-
EmployeeConsecutiveAssignmentEnd
-
-
Method Details
-
isWeekendAndNotLastDayOfWeekend
-
getDistanceToLastDayOfWeekend
-
getEmployee
-
setEmployee
-
getShiftDate
-
setShiftDate
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<EmployeeConsecutiveAssignmentEnd>
-
toString
-
getContract
-
getShiftDateDayIndex
public int getShiftDateDayIndex() -
isWeekendAndNotLastDayOfWeekend
public boolean isWeekendAndNotLastDayOfWeekend() -
getDistanceToLastDayOfWeekend
public int getDistanceToLastDayOfWeekend()
-