Class AbstractXlsxSolutionFileIO.AbstractXlsxReader<Solution_,​Score_ extends org.optaplanner.core.api.score.Score<Score_>>

  • Enclosing class:
    AbstractXlsxSolutionFileIO<Solution_>

    public abstract static class AbstractXlsxSolutionFileIO.AbstractXlsxReader<Solution_,​Score_ extends org.optaplanner.core.api.score.Score<Score_>>
    extends Object
    • Field Detail

      • workbook

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

        protected final org.optaplanner.core.impl.score.definition.ScoreDefinition<Score_ extends org.optaplanner.core.api.score.Score<Score_>> scoreDefinition
      • 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 Detail

      • AbstractXlsxReader

        public AbstractXlsxReader​(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                  String solverConfigResource)
    • Method Detail

      • 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)