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 Details

    • workbook

      protected final org.apache.poi.xssf.usermodel.XSSFWorkbook workbook
    • scoreDefinition

      protected final ai.timefold.solver.core.impl.score.definition.ScoreDefinition<Score_ extends ai.timefold.solver.core.api.score.Score<Score_>> scoreDefinition
    • solution

      protected Solution_ solution
    • currentSheet

      protected org.apache.poi.xssf.usermodel.XSSFSheet currentSheet
    • currentRowIterator

      protected Iterator<org.apache.poi.ss.usermodel.Row> 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

      public abstract Solution_ read()
    • readIntConstraintParameterLine

      protected void readIntConstraintParameterLine(String name, Consumer<Integer> consumer, String constraintDescription)
    • readLongConstraintParameterLine

      protected void readLongConstraintParameterLine(String name, Consumer<Long> consumer, String constraintDescription)
    • readScoreConstraintHeaders

      protected void readScoreConstraintHeaders()
    • readScoreConstraintLine

      protected Score_ readScoreConstraintLine(String constraintName, String constraintDescription)
    • currentPosition

      protected String currentPosition()
    • hasSheet

      protected boolean hasSheet(String sheetName)
    • nextSheet

      protected void nextSheet(String sheetName)
    • nextRow

      protected boolean nextRow()
    • nextRow

      protected boolean nextRow(boolean skipEmptyRows)
    • currentRowIsEmpty

      protected boolean currentRowIsEmpty()
    • readHeaderCell

      protected void readHeaderCell(String value)
    • 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)