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
FieldsModifier and TypeFieldDescriptionprotected final Map<String,ai.timefold.solver.core.api.score.constraint.ConstraintMatchTotal<Score_>> protected org.apache.poi.ss.usermodel.CreationHelperprotected intprotected org.apache.poi.ss.usermodel.Drawingprotected org.apache.poi.xssf.usermodel.XSSFRowprotected intprotected org.apache.poi.xssf.usermodel.XSSFSheetprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected intprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected final Score_protected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected final Solution_protected org.apache.poi.xssf.usermodel.XSSFCellStyleprotected org.apache.poi.xssf.usermodel.XSSFWorkbookprotected org.apache.poi.xssf.usermodel.XSSFCellStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected org.apache.poi.xssf.usermodel.XSSFCellStylecreateStyle(org.apache.poi.xssf.usermodel.XSSFColor color) protected voidprotected 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.XSSFCellprotected 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 voidprotected 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 voidprotected voidwriteScoreConstraintLine(String constraintName, Score_ constraintScore, String constraintDescription) protected voidwriteScoreView(Function<Collection<?>, String> indictmentListFormatter) void
-
Field Details
-
solution
-
score
-
constraintMatchTotalsMap
-
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 -
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 Details
-
AbstractXlsxWriter
-
-
Method Details
-
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
-
writeIntConstraintParameterLine
-
writeLongConstraintParameterLine
-
writeScoreConstraintHeaders
protected void writeScoreConstraintHeaders() -
writeScoreConstraintLine
-
writeScoreView
-
nextSheet
-
nextRow
protected void nextRow() -
nextHeaderCell
-
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
-
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)
-