org.drools.planner.examples.nurserostering.domain
Class NurseRoster
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.nurserostering.domain.NurseRoster
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, Solution<HardSoftScore>
public class NurseRoster
- extends AbstractPersistable
- implements Solution<HardSoftScore>
- See Also:
- Serialized Form
NurseRoster
public NurseRoster()
getCode
public String getCode()
setCode
public void setCode(String code)
getNurseRosterInfo
public NurseRosterInfo getNurseRosterInfo()
setNurseRosterInfo
public void setNurseRosterInfo(NurseRosterInfo nurseRosterInfo)
getSkillList
public List<Skill> getSkillList()
setSkillList
public void setSkillList(List<Skill> skillList)
getShiftTypeList
public List<ShiftType> getShiftTypeList()
setShiftTypeList
public void setShiftTypeList(List<ShiftType> shiftTypeList)
getShiftTypeSkillRequirementList
public List<ShiftTypeSkillRequirement> getShiftTypeSkillRequirementList()
setShiftTypeSkillRequirementList
public void setShiftTypeSkillRequirementList(List<ShiftTypeSkillRequirement> shiftTypeSkillRequirementList)
getPatternList
public List<Pattern> getPatternList()
setPatternList
public void setPatternList(List<Pattern> patternList)
getContractList
public List<Contract> getContractList()
setContractList
public void setContractList(List<Contract> contractList)
getContractLineList
public List<ContractLine> getContractLineList()
setContractLineList
public void setContractLineList(List<ContractLine> contractLineList)
getPatternContractLineList
public List<PatternContractLine> getPatternContractLineList()
setPatternContractLineList
public void setPatternContractLineList(List<PatternContractLine> patternContractLineList)
getEmployeeList
public List<Employee> getEmployeeList()
setEmployeeList
public void setEmployeeList(List<Employee> employeeList)
getSkillProficiencyList
public List<SkillProficiency> getSkillProficiencyList()
setSkillProficiencyList
public void setSkillProficiencyList(List<SkillProficiency> skillProficiencyList)
getShiftDateList
public List<ShiftDate> getShiftDateList()
setShiftDateList
public void setShiftDateList(List<ShiftDate> shiftDateList)
getShiftList
public List<Shift> getShiftList()
setShiftList
public void setShiftList(List<Shift> shiftList)
getDayOffRequestList
public List<DayOffRequest> getDayOffRequestList()
setDayOffRequestList
public void setDayOffRequestList(List<DayOffRequest> dayOffRequestList)
getDayOnRequestList
public List<DayOnRequest> getDayOnRequestList()
setDayOnRequestList
public void setDayOnRequestList(List<DayOnRequest> dayOnRequestList)
getShiftOffRequestList
public List<ShiftOffRequest> getShiftOffRequestList()
setShiftOffRequestList
public void setShiftOffRequestList(List<ShiftOffRequest> shiftOffRequestList)
getShiftOnRequestList
public List<ShiftOnRequest> getShiftOnRequestList()
setShiftOnRequestList
public void setShiftOnRequestList(List<ShiftOnRequest> shiftOnRequestList)
getShiftAssignmentList
public List<ShiftAssignment> getShiftAssignmentList()
setShiftAssignmentList
public void setShiftAssignmentList(List<ShiftAssignment> shiftAssignmentList)
getScore
public HardSoftScore getScore()
- Description copied from interface:
Solution
- Returns the Score of this Solution.
- Specified by:
getScore
in interface Solution<HardSoftScore>
- Returns:
- null if the Solution is uninitialized
or the last calculated Score is dirty the new Score has not yet been recalculated
setScore
public void setScore(HardSoftScore score)
- Description copied from interface:
Solution
- Called by the
Solver
when the Score of this Solution has been calculated.
- Specified by:
setScore
in interface Solution<HardSoftScore>
- Parameters:
score
- null if the Solution has changed and the new Score has not yet been recalculated
getProblemFacts
public Collection<? extends Object> getProblemFacts()
- Description copied from interface:
Solution
- Called by the
DroolsScoreDirector
when the Solution
needs to be inserted
into an empty WorkingMemory
.
These facts can be used by the score rules.
They don't change during planning (except through ProblemFactChange
events).
Do not include the planning entities as problem facts:
they are automatically inserted into the WorkingMemory
if and only if they are initialized.
When they are initialized later, they are also automatically inserted.
- Specified by:
getProblemFacts
in interface Solution<HardSoftScore>
- Returns:
- never null (although an empty collection is allowed),
all the facts of this solution except for the planning entities
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.