java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.nurserostering.domain.Shift
All Implemented Interfaces:
Labeled

public class Shift extends AbstractPersistable implements Labeled
  • Constructor Details

    • Shift

      public Shift()
    • Shift

      public Shift(long id)
    • Shift

      public Shift(long id, ShiftDate shiftDate, ShiftType shiftType, int index, int requiredEmployeeSize)
  • Method Details

    • getShiftDate

      public ShiftDate getShiftDate()
    • setShiftDate

      public void setShiftDate(ShiftDate shiftDate)
    • getShiftType

      public ShiftType getShiftType()
    • setShiftType

      public void setShiftType(ShiftType shiftType)
    • getIndex

      public int getIndex()
    • setIndex

      public void setIndex(int index)
    • getRequiredEmployeeSize

      public int getRequiredEmployeeSize()
    • setRequiredEmployeeSize

      public void setRequiredEmployeeSize(int requiredEmployeeSize)
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface Labeled
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPersistable