Class ShiftAssignment
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.nurserostering.domain.ShiftAssignment
-
- All Implemented Interfaces:
Comparable<ShiftAssignment>
public class ShiftAssignment extends AbstractPersistable implements Comparable<ShiftAssignment>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description ShiftAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ShiftAssignment o)ContractgetContract()EmployeegetEmployee()intgetIndexInShift()ShiftgetShift()ShiftDategetShiftDate()intgetShiftDateDayIndex()DayOfWeekgetShiftDateDayOfWeek()ShiftTypegetShiftType()intgetWeekendSundayIndex()booleanisWeekend()voidsetEmployee(Employee employee)voidsetIndexInShift(int indexInShift)voidsetShift(Shift shift)StringtoString()-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Method Detail
-
getShift
public Shift getShift()
-
setShift
public void setShift(Shift shift)
-
getIndexInShift
public int getIndexInShift()
-
setIndexInShift
public void setIndexInShift(int indexInShift)
-
getEmployee
public Employee getEmployee()
-
setEmployee
public void setEmployee(Employee employee)
-
getShiftDate
public ShiftDate getShiftDate()
-
getShiftType
public ShiftType getShiftType()
-
getShiftDateDayIndex
public int getShiftDateDayIndex()
-
getShiftDateDayOfWeek
public DayOfWeek getShiftDateDayOfWeek()
-
getContract
public Contract getContract()
-
isWeekend
public boolean isWeekend()
-
getWeekendSundayIndex
public int getWeekendSundayIndex()
-
toString
public String toString()
- Overrides:
toStringin classAbstractPersistable
-
compareTo
public int compareTo(ShiftAssignment o)
- Specified by:
compareToin interfaceComparable<ShiftAssignment>
-
-