Solution_
- the solution type, the class with the PlanningSolution
annotationpublic abstract class AbstractSolutionImporter<Solution_> extends LoggingMain
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSolutionImporter.InputBuilder |
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_OUTPUT_FILE_SUFFIX |
protected File |
inputDir |
protected File |
outputDir |
protected SolutionDao<Solution_> |
solutionDao |
logger
Constructor and Description |
---|
AbstractSolutionImporter(boolean withoutDao) |
AbstractSolutionImporter(SolutionDao<Solution_> solutionDao) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptInputFile(File inputFile) |
boolean |
acceptInputFileDuringBulkConvert(File inputFile)
Some files are too big to be serialized to XML or take too long.
|
protected void |
convert(File inputFile,
File outputFile) |
void |
convert(String inputFileName,
String outputFileName) |
void |
convertAll() |
static String |
getFlooredPossibleSolutionSize(BigInteger possibleSolutionSize) |
File |
getInputDir() |
abstract String |
getInputFileSuffix() |
File |
getOutputDir() |
protected String |
getOutputFileSuffix() |
boolean |
isInputFileDirectory() |
abstract Solution_ |
readSolution(File inputFile) |
protected static final String DEFAULT_OUTPUT_FILE_SUFFIX
protected final SolutionDao<Solution_> solutionDao
protected final File inputDir
protected final File outputDir
public AbstractSolutionImporter(SolutionDao<Solution_> solutionDao)
public AbstractSolutionImporter(boolean withoutDao)
public File getInputDir()
public File getOutputDir()
public boolean isInputFileDirectory()
public abstract String getInputFileSuffix()
protected String getOutputFileSuffix()
public void convertAll()
public boolean acceptInputFile(File inputFile)
public boolean acceptInputFileDuringBulkConvert(File inputFile)
inputFile
- never nullpublic static String getFlooredPossibleSolutionSize(BigInteger possibleSolutionSize)
Copyright © 2006–2017 JBoss by Red Hat. All rights reserved.