Class NurseRosteringImporter.NurseRosteringInputBuilder
- java.lang.Object
-
- org.optaplanner.examples.common.app.LoggingMain
-
- org.optaplanner.examples.common.persistence.AbstractSolutionImporter.InputBuilder
-
- org.optaplanner.examples.common.persistence.AbstractXmlSolutionImporter.XmlInputBuilder<NurseRoster>
-
- org.optaplanner.examples.nurserostering.persistence.NurseRosteringImporter.NurseRosteringInputBuilder
-
- Enclosing class:
- NurseRosteringImporter
public static class NurseRosteringImporter.NurseRosteringInputBuilder extends AbstractXmlSolutionImporter.XmlInputBuilder<NurseRoster>
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Contract>contractMapprotected Map<org.apache.commons.lang3.tuple.Pair<LocalDate,String>,Shift>dateAndShiftTypeToShiftMapprotected Map<org.apache.commons.lang3.tuple.Pair<DayOfWeek,ShiftType>,List<Shift>>dayOfWeekAndShiftTypeToShiftListMapprotected Map<String,Employee>employeeMapprotected Map<String,Pattern>patternMapprotected Map<LocalDate,ShiftDate>shiftDateMapprotected Map<String,ShiftType>shiftTypeMapprotected Map<String,Skill>skillMap-
Fields inherited from class org.optaplanner.examples.common.persistence.AbstractXmlSolutionImporter.XmlInputBuilder
document, inputFile
-
Fields inherited from class org.optaplanner.examples.common.app.LoggingMain
logger
-
-
Constructor Summary
Constructors Constructor Description NurseRosteringInputBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NurseRosterreadSolution()-
Methods inherited from class org.optaplanner.examples.common.persistence.AbstractXmlSolutionImporter.XmlInputBuilder
assertElementName, getInputId, setDocument, setInputFile
-
-
-
-
Field Detail
-
dateAndShiftTypeToShiftMap
protected Map<org.apache.commons.lang3.tuple.Pair<LocalDate,String>,Shift> dateAndShiftTypeToShiftMap
-
dayOfWeekAndShiftTypeToShiftListMap
protected Map<org.apache.commons.lang3.tuple.Pair<DayOfWeek,ShiftType>,List<Shift>> dayOfWeekAndShiftTypeToShiftListMap
-
-
Method Detail
-
readSolution
public NurseRoster readSolution() throws IOException, org.jdom.JDOMException
- Specified by:
readSolutionin classAbstractXmlSolutionImporter.XmlInputBuilder<NurseRoster>- Throws:
IOExceptionorg.jdom.JDOMException
-
-