Class EmployeeConsecutiveAssignmentStart
- java.lang.Object
-
- org.optaplanner.examples.nurserostering.score.drools.EmployeeConsecutiveAssignmentStart
-
- All Implemented Interfaces:
Comparable<EmployeeConsecutiveAssignmentStart>
public class EmployeeConsecutiveAssignmentStart extends Object implements Comparable<EmployeeConsecutiveAssignmentStart>
-
-
Constructor Summary
Constructors Constructor Description EmployeeConsecutiveAssignmentStart(Employee employee, ShiftDate shiftDate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EmployeeConsecutiveAssignmentStart other)booleanequals(Object o)ContractgetContract()intgetDistanceToFirstDayOfWeekend()static intgetDistanceToFirstDayOfWeekend(Employee employee, ShiftDate shiftDate)EmployeegetEmployee()ShiftDategetShiftDate()intgetShiftDateDayIndex()inthashCode()booleanisWeekendAndNotFirstDayOfWeekend()static booleanisWeekendAndNotFirstDayOfWeekend(Employee employee, ShiftDate shiftDate)voidsetEmployee(Employee employee)voidsetShiftDate(ShiftDate shiftDate)StringtoString()
-
-
-
Method Detail
-
isWeekendAndNotFirstDayOfWeekend
public static boolean isWeekendAndNotFirstDayOfWeekend(Employee employee, ShiftDate shiftDate)
-
getDistanceToFirstDayOfWeekend
public static int getDistanceToFirstDayOfWeekend(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(EmployeeConsecutiveAssignmentStart other)
- Specified by:
compareToin interfaceComparable<EmployeeConsecutiveAssignmentStart>
-
getContract
public Contract getContract()
-
getShiftDateDayIndex
public int getShiftDateDayIndex()
-
isWeekendAndNotFirstDayOfWeekend
public boolean isWeekendAndNotFirstDayOfWeekend()
-
getDistanceToFirstDayOfWeekend
public int getDistanceToFirstDayOfWeekend()
-
-