org.drools.planner.examples.common.persistence
Class AbstractSolutionImporter
java.lang.Object
org.drools.planner.examples.common.app.LoggingMain
org.drools.planner.examples.common.persistence.AbstractSolutionImporter
- Direct Known Subclasses:
- AbstractTxtSolutionImporter, AbstractXmlSolutionImporter
public abstract class AbstractSolutionImporter
- extends LoggingMain
Fields inherited from class org.drools.planner.examples.common.app.LoggingMain |
logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_OUTPUT_FILE_SUFFIX
protected static final String DEFAULT_OUTPUT_FILE_SUFFIX
- See Also:
- Constant Field Values
solutionDao
protected SolutionDao solutionDao
AbstractSolutionImporter
public AbstractSolutionImporter(SolutionDao solutionDao)
getInputDir
protected File getInputDir()
getInputFileSuffix
public abstract String getInputFileSuffix()
getOutputDir
protected File getOutputDir()
getOutputFileSuffix
protected String getOutputFileSuffix()
convertAll
public void convertAll()
acceptInputFile
public boolean acceptInputFile(File inputFile)
acceptInputFileDuringBulkConvert
public boolean acceptInputFileDuringBulkConvert(File inputFile)
- Some files are to big to be serialized to XML or take too long.
- Parameters:
inputFile
- never null
- Returns:
- true if accepted
readSolution
public abstract Solution readSolution(File inputFile)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.