Class EmployeeConsecutiveAssignmentEnd
- java.lang.Object
-
- org.optaplanner.examples.nurserostering.solver.drools.EmployeeConsecutiveAssignmentEnd
-
- All Implemented Interfaces:
Serializable,Comparable<EmployeeConsecutiveAssignmentEnd>
public class EmployeeConsecutiveAssignmentEnd extends Object implements Comparable<EmployeeConsecutiveAssignmentEnd>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmployeeConsecutiveAssignmentEnd(Employee employee, ShiftDate shiftDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EmployeeConsecutiveAssignmentEnd other)booleanequals(Object o)ContractgetContract()intgetDistanceToLastDayOfWeekend()EmployeegetEmployee()ShiftDategetShiftDate()intgetShiftDateDayIndex()inthashCode()booleanisWeekendAndNotLastDayOfWeekend()voidsetEmployee(Employee employee)voidsetShiftDate(ShiftDate shiftDate)StringtoString()
-
-
-
Method Detail
-
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()
-
-