Class EmployeeConsecutiveAssignmentEnd
- java.lang.Object
-
- org.optaplanner.examples.nurserostering.score.drools.EmployeeConsecutiveAssignmentEnd
-
- All Implemented Interfaces:
Comparable<EmployeeConsecutiveAssignmentEnd>
public class EmployeeConsecutiveAssignmentEnd extends Object implements Comparable<EmployeeConsecutiveAssignmentEnd>
-
-
Constructor Summary
Constructors Constructor Description EmployeeConsecutiveAssignmentEnd(Employee employee, ShiftDate shiftDate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EmployeeConsecutiveAssignmentEnd other)booleanequals(Object o)ContractgetContract()intgetDistanceToLastDayOfWeekend()static intgetDistanceToLastDayOfWeekend(Employee employee, ShiftDate shiftDate)EmployeegetEmployee()ShiftDategetShiftDate()intgetShiftDateDayIndex()inthashCode()booleanisWeekendAndNotLastDayOfWeekend()static booleanisWeekendAndNotLastDayOfWeekend(Employee employee, ShiftDate shiftDate)voidsetEmployee(Employee employee)voidsetShiftDate(ShiftDate shiftDate)StringtoString()
-
-
-
Method Detail
-
isWeekendAndNotLastDayOfWeekend
public static boolean isWeekendAndNotLastDayOfWeekend(Employee employee, ShiftDate shiftDate)
-
getDistanceToLastDayOfWeekend
public static int getDistanceToLastDayOfWeekend(Employee employee, ShiftDate shiftDate)
-
getEmployee
public Employee getEmployee()
-
setEmployee
public void setEmployee(Employee employee)
-
getShiftDate
public ShiftDate getShiftDate()
-
setShiftDate
public void setShiftDate(ShiftDate shiftDate)
-
compareTo
public int compareTo(EmployeeConsecutiveAssignmentEnd other)
- Specified by:
compareToin interfaceComparable<EmployeeConsecutiveAssignmentEnd>
-
getContract
public Contract getContract()
-
getShiftDateDayIndex
public int getShiftDateDayIndex()
-
isWeekendAndNotLastDayOfWeekend
public boolean isWeekendAndNotLastDayOfWeekend()
-
getDistanceToLastDayOfWeekend
public int getDistanceToLastDayOfWeekend()
-
-