Class ShiftAssignment
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.nurserostering.domain.ShiftAssignment
- All Implemented Interfaces:
Comparable<ShiftAssignment>
-
Field Summary
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetShift()intintbooleanvoidsetEmployee(Employee employee) voidsetIndexInShift(int indexInShift) voidtoString()Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Constructor Details
-
ShiftAssignment
public ShiftAssignment() -
ShiftAssignment
-
-
Method Details
-
getShift
-
setShift
-
getIndexInShift
public int getIndexInShift() -
setIndexInShift
public void setIndexInShift(int indexInShift) -
getEmployee
-
setEmployee
-
getShiftDate
-
getShiftType
-
getShiftDateDayIndex
public int getShiftDateDayIndex() -
getShiftDateDayOfWeek
-
getContract
-
isWeekend
public boolean isWeekend() -
getWeekendSundayIndex
public int getWeekendSundayIndex() -
toString
- Overrides:
toStringin classAbstractPersistable
-
compareTo
- Specified by:
compareToin interfaceComparable<ShiftAssignment>
-