Class EmployeeConsecutiveAssignmentStart

java.lang.Object
org.optaplanner.examples.nurserostering.optional.score.EmployeeConsecutiveAssignmentStart
All Implemented Interfaces:
Comparable<EmployeeConsecutiveAssignmentStart>

public class EmployeeConsecutiveAssignmentStart extends Object implements Comparable<EmployeeConsecutiveAssignmentStart>
  • Constructor Details

    • EmployeeConsecutiveAssignmentStart

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

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

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

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

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

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

      public Contract getContract()
    • getShiftDateDayIndex

      public int getShiftDateDayIndex()
    • isWeekendAndNotFirstDayOfWeekend

      public boolean isWeekendAndNotFirstDayOfWeekend()
    • getDistanceToFirstDayOfWeekend

      public int getDistanceToFirstDayOfWeekend()