Class AbstractXlsxSolutionFileIO.AbstractXlsxWriter<Solution_,​Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>

  • Enclosing class:
    AbstractXlsxSolutionFileIO<Solution_>

    public abstract static class AbstractXlsxSolutionFileIO.AbstractXlsxWriter<Solution_,​Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>
    extends Object
    • Field Detail

      • solution

        protected final Solution_ solution
      • score

        protected final Score_ extends ai.timefold.solver.core.api.score.Score<Score_> score
      • constraintMatchTotalsMap

        protected final Map<String,​ai.timefold.solver.core.api.score.constraint.ConstraintMatchTotal<Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>> constraintMatchTotalsMap
      • indictmentMap

        protected final Map<Object,​ai.timefold.solver.core.api.score.constraint.Indictment<Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>> indictmentMap
      • workbook

        protected org.apache.poi.xssf.usermodel.XSSFWorkbook workbook
      • creationHelper

        protected org.apache.poi.ss.usermodel.CreationHelper creationHelper
      • headerStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle headerStyle
      • defaultStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle defaultStyle
      • scoreStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle scoreStyle
      • disabledScoreStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle disabledScoreStyle
      • unavailableStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle unavailableStyle
      • pinnedStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle pinnedStyle
      • hardPenaltyStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle hardPenaltyStyle
      • mediumPenaltyStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle mediumPenaltyStyle
      • softPenaltyStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle softPenaltyStyle
      • wrappedStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle wrappedStyle
      • planningVariableStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle planningVariableStyle
      • republishedStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle republishedStyle
      • currentSheet

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

        protected org.apache.poi.ss.usermodel.Drawing currentDrawing
      • currentRow

        protected org.apache.poi.xssf.usermodel.XSSFRow currentRow
      • currentRowNumber

        protected int currentRowNumber
      • currentColumnNumber

        protected int currentColumnNumber
      • headerCellCount

        protected int headerCellCount
    • Constructor Detail

      • AbstractXlsxWriter

        public AbstractXlsxWriter​(Solution_ solution,
                                  String solverConfigResource)
    • Method Detail

      • write

        public abstract org.apache.poi.ss.usermodel.Workbook write()
      • writeSetup

        public void writeSetup()
      • createStyles

        protected void createStyles()
      • createStyle

        protected org.apache.poi.xssf.usermodel.XSSFCellStyle createStyle​(org.apache.poi.xssf.usermodel.XSSFColor color)
      • writeIntConstraintParameterLine

        protected void writeIntConstraintParameterLine​(String name,
                                                       int value,
                                                       String constraintDescription)
      • writeIntConstraintParameterLine

        protected void writeIntConstraintParameterLine​(String name,
                                                       Supplier<Integer> supplier,
                                                       String constraintDescription)
      • writeLongConstraintParameterLine

        protected void writeLongConstraintParameterLine​(String name,
                                                        Supplier<Long> supplier,
                                                        String constraintDescription)
      • writeScoreConstraintHeaders

        protected void writeScoreConstraintHeaders()
      • writeScoreConstraintLine

        protected void writeScoreConstraintLine​(String constraintName,
                                                Score_ constraintScore,
                                                String constraintDescription)
      • nextSheet

        protected void nextSheet​(String sheetName,
                                 int colSplit,
                                 int rowSplit,
                                 boolean view)
      • nextRow

        protected void nextRow()
      • nextHeaderCell

        protected void nextHeaderCell​(String value)
      • nextHeaderCell

        protected void nextHeaderCell​(double value)
      • nextCell

        protected org.apache.poi.xssf.usermodel.XSSFCell nextCell()
      • nextCell

        protected org.apache.poi.xssf.usermodel.XSSFCell nextCell​(org.apache.poi.xssf.usermodel.XSSFCellStyle cellStyle)
      • nextHeaderCellVertically

        protected void nextHeaderCellVertically​(String value)
      • nextCellVertically

        protected org.apache.poi.xssf.usermodel.XSSFCell nextCellVertically()
      • nextCellVertically

        protected org.apache.poi.xssf.usermodel.XSSFCell nextCellVertically​(org.apache.poi.xssf.usermodel.XSSFCellStyle cellStyle)
      • autoSizeColumnsWithHeader

        protected void autoSizeColumnsWithHeader()
      • setSizeColumnsWithHeader

        protected void setSizeColumnsWithHeader​(int width)