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 Details

    • EmployeeConsecutiveAssignmentEnd

      public EmployeeConsecutiveAssignmentEnd(Employee employee, ShiftDate shiftDate)
  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(EmployeeConsecutiveAssignmentEnd other)
      Specified by:
      compareTo in interface Comparable<EmployeeConsecutiveAssignmentEnd>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getContract

      public Contract getContract()
    • getShiftDateDayIndex

      public int getShiftDateDayIndex()
    • isWeekendAndNotLastDayOfWeekend

      public boolean isWeekendAndNotLastDayOfWeekend()
    • getDistanceToLastDayOfWeekend

      public int getDistanceToLastDayOfWeekend()