Class AbstractXlsxSolutionFileIO.AbstractXlsxReader<Solution_,Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>
java.lang.Object
ai.timefold.solver.examples.common.persistence.AbstractXlsxSolutionFileIO.AbstractXlsxReader<Solution_,Score_>
- Enclosing class:
- AbstractXlsxSolutionFileIO<Solution_>
public abstract static class AbstractXlsxSolutionFileIO.AbstractXlsxReader<Solution_,Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected org.apache.poi.xssf.usermodel.XSSFRowprotected Iterator<org.apache.poi.ss.usermodel.Row>protected intprotected org.apache.poi.xssf.usermodel.XSSFSheetprotected final ai.timefold.solver.core.impl.score.definition.ScoreDefinition<Score_>protected Solution_protected final org.apache.poi.xssf.usermodel.XSSFWorkbook -
Constructor Summary
ConstructorsConstructorDescriptionAbstractXlsxReader(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, String solverConfigResource) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleanprotected org.apache.poi.xssf.usermodel.XSSFColorextractColor(org.apache.poi.xssf.usermodel.XSSFCell cell, org.apache.poi.xssf.usermodel.XSSFColor... acceptableColors) protected booleanprotected org.apache.poi.xssf.usermodel.XSSFCellprotected org.apache.poi.xssf.usermodel.XSSFCellnextCell()protected org.apache.poi.xssf.usermodel.XSSFCellprotected org.apache.poi.xssf.usermodel.XSSFCellprotected booleannextRow()protected booleannextRow(boolean skipEmptyRows) protected voidprotected org.apache.poi.xssf.usermodel.XSSFCellabstract Solution_read()protected voidreadHeaderCell(double value) protected voidreadHeaderCell(String value) protected voidreadIntConstraintParameterLine(String name, Consumer<Integer> consumer, String constraintDescription) protected voidreadLongConstraintParameterLine(String name, Consumer<Long> consumer, String constraintDescription) protected voidprotected Score_readScoreConstraintLine(String constraintName, String constraintDescription)
-
Field Details
-
workbook
protected final org.apache.poi.xssf.usermodel.XSSFWorkbook workbook -
scoreDefinition
-
solution
-
currentSheet
protected org.apache.poi.xssf.usermodel.XSSFSheet currentSheet -
currentRowIterator
-
currentRow
protected org.apache.poi.xssf.usermodel.XSSFRow currentRow -
currentRowNumber
protected int currentRowNumber -
currentColumnNumber
protected int currentColumnNumber
-
-
Constructor Details
-
AbstractXlsxReader
public AbstractXlsxReader(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, String solverConfigResource)
-
-
Method Details
-
read
-
readIntConstraintParameterLine
-
readLongConstraintParameterLine
-
readScoreConstraintHeaders
protected void readScoreConstraintHeaders() -
readScoreConstraintLine
-
currentPosition
-
hasSheet
-
nextSheet
-
nextRow
protected boolean nextRow() -
nextRow
protected boolean nextRow(boolean skipEmptyRows) -
currentRowIsEmpty
protected boolean currentRowIsEmpty() -
readHeaderCell
-
readHeaderCell
protected void readHeaderCell(double value) -
nextStringCell
protected org.apache.poi.xssf.usermodel.XSSFCell nextStringCell() -
nextNumericCell
protected org.apache.poi.xssf.usermodel.XSSFCell nextNumericCell() -
nextNumericCellOrBlank
protected org.apache.poi.xssf.usermodel.XSSFCell nextNumericCellOrBlank() -
nextBooleanCell
protected org.apache.poi.xssf.usermodel.XSSFCell nextBooleanCell() -
nextCell
protected org.apache.poi.xssf.usermodel.XSSFCell nextCell() -
extractColor
protected org.apache.poi.xssf.usermodel.XSSFColor extractColor(org.apache.poi.xssf.usermodel.XSSFCell cell, org.apache.poi.xssf.usermodel.XSSFColor... acceptableColors)
-