Class AbstractXlsxSolutionFileIO.AbstractXlsxWriter<Solution_,Score_ extends ai.timefold.solver.core.api.score.Score<Score_>>
- java.lang.Object
-
- ai.timefold.solver.examples.common.persistence.AbstractXlsxSolutionFileIO.AbstractXlsxWriter<Solution_,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 Summary
Fields Modifier and Type Field Description protected Map<String,ai.timefold.solver.core.api.score.constraint.ConstraintMatchTotal<Score_>>constraintMatchTotalsMapprotected org.apache.poi.ss.usermodel.CreationHelpercreationHelperprotected intcurrentColumnNumberprotected org.apache.poi.ss.usermodel.DrawingcurrentDrawingprotected org.apache.poi.xssf.usermodel.XSSFRowcurrentRowprotected intcurrentRowNumberprotected org.apache.poi.xssf.usermodel.XSSFSheetcurrentSheetprotected org.apache.poi.xssf.usermodel.XSSFCellStyledefaultStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyledisabledScoreStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStylehardPenaltyStyleprotected intheaderCellCountprotected org.apache.poi.xssf.usermodel.XSSFCellStyleheaderStyleprotected Map<Object,ai.timefold.solver.core.api.score.constraint.Indictment<Score_>>indictmentMapprotected org.apache.poi.xssf.usermodel.XSSFCellStylemediumPenaltyStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStylepinnedStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleplanningVariableStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStylerepublishedStyleprotected Score_scoreprotected org.apache.poi.xssf.usermodel.XSSFCellStylescoreStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStylesoftPenaltyStyleprotected Solution_solutionprotected org.apache.poi.xssf.usermodel.XSSFCellStyleunavailableStyleprotected org.apache.poi.xssf.usermodel.XSSFWorkbookworkbookprotected org.apache.poi.xssf.usermodel.XSSFCellStylewrappedStyle
-
Constructor Summary
Constructors Constructor Description AbstractXlsxWriter(Solution_ solution, String solverConfigResource)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidautoSizeColumnsWithHeader()protected org.apache.poi.xssf.usermodel.XSSFCellStylecreateStyle(org.apache.poi.xssf.usermodel.XSSFColor color)protected voidcreateStyles()protected org.apache.poi.xssf.usermodel.XSSFCellnextCell()protected org.apache.poi.xssf.usermodel.XSSFCellnextCell(org.apache.poi.xssf.usermodel.XSSFCellStyle cellStyle)protected org.apache.poi.xssf.usermodel.XSSFCellnextCellVertically()protected org.apache.poi.xssf.usermodel.XSSFCellnextCellVertically(org.apache.poi.xssf.usermodel.XSSFCellStyle cellStyle)protected voidnextHeaderCell(double value)protected voidnextHeaderCell(String value)protected voidnextHeaderCellVertically(String value)protected voidnextRow()protected voidnextSheet(String sheetName, int colSplit, int rowSplit, boolean view)protected voidsetSizeColumnsWithHeader(int width)abstract org.apache.poi.ss.usermodel.Workbookwrite()protected voidwriteIntConstraintParameterLine(String name, int value, String constraintDescription)protected voidwriteIntConstraintParameterLine(String name, Supplier<Integer> supplier, String constraintDescription)protected voidwriteLongConstraintParameterLine(String name, Supplier<Long> supplier, String constraintDescription)protected voidwriteScoreConstraintHeaders()protected voidwriteScoreConstraintLine(String constraintName, Score_ constraintScore, String constraintDescription)protected voidwriteScoreView(Function<Collection<?>,String> indictmentListFormatter)voidwriteSetup()
-
-
-
Field Detail
-
solution
protected final Solution_ solution
-
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
-
-
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)
-
writeScoreView
protected void writeScoreView(Function<Collection<?>,String> indictmentListFormatter)
-
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)
-
-