|
Drools Planner distribution 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProblemIO
Reads or writes a Solution
from or to a File
.
Method Summary | |
---|---|
String |
getFileExtension()
Every Solution type potentially has its own file extension. |
Solution |
read(File inputSolutionFile)
This method is thread-safe. |
void |
write(Solution solution,
File outputSolutionFile)
This method is thread-safe. |
Method Detail |
---|
String getFileExtension()
Solution
type potentially has its own file extension.
If no specific file extension is defined by the use case, the following are recommended:
ProblemIO
implementation serializes to XML, use file extension "xml".ProblemIO
implementation serializes to text, use file extension "txt".ProblemIO
implementation serializes to binary, use file extension "dat".
Solution read(File inputSolutionFile)
inputSolutionFile
- never null
void write(Solution solution, File outputSolutionFile)
solution
- never nulloutputSolutionFile
- never null, parent directory already exists
|
Drools Planner distribution 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |