Class EmployeeWorkSequence
- java.lang.Object
-
- org.optaplanner.examples.nurserostering.score.drools.EmployeeWorkSequence
-
- All Implemented Interfaces:
Comparable<EmployeeWorkSequence>
public class EmployeeWorkSequence extends Object implements Comparable<EmployeeWorkSequence>
-
-
Constructor Summary
Constructors Constructor Description EmployeeWorkSequence(Employee employee, int firstDayIndex, int lastDayIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EmployeeWorkSequence other)booleanequals(Object o)intgetDayLength()EmployeegetEmployee()intgetFirstDayIndex()intgetLastDayIndex()inthashCode()voidsetEmployee(Employee employee)voidsetFirstDayIndex(int firstDayIndex)voidsetLastDayIndex(int lastDayIndex)StringtoString()
-
-
-
Constructor Detail
-
EmployeeWorkSequence
public EmployeeWorkSequence(Employee employee, int firstDayIndex, int lastDayIndex)
-
-
Method Detail
-
getEmployee
public Employee getEmployee()
-
setEmployee
public void setEmployee(Employee employee)
-
getFirstDayIndex
public int getFirstDayIndex()
-
setFirstDayIndex
public void setFirstDayIndex(int firstDayIndex)
-
getLastDayIndex
public int getLastDayIndex()
-
setLastDayIndex
public void setLastDayIndex(int lastDayIndex)
-
compareTo
public int compareTo(EmployeeWorkSequence other)
- Specified by:
compareToin interfaceComparable<EmployeeWorkSequence>
-
getDayLength
public int getDayLength()
-
-