org.drools.planner.benchmark.core
Class XStreamProblemIO
java.lang.Object
org.drools.planner.benchmark.core.XStreamProblemIO
- All Implemented Interfaces:
- ProblemIO
public class XStreamProblemIO
- extends Object
- implements ProblemIO
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XStreamProblemIO
public XStreamProblemIO()
XStreamProblemIO
public XStreamProblemIO(Class... xstreamAnnotatedClasses)
getFileExtension
public String getFileExtension()
- Description copied from interface:
ProblemIO
- The file extension does not include the dot that separates it from the base name.
- Specified by:
getFileExtension
in interface ProblemIO
- Returns:
- never null, for example "xml"
read
public Solution read(File inputSolutionFile)
- Specified by:
read
in interface ProblemIO
- Parameters:
inputSolutionFile
- never null
- Returns:
- never null
write
public void write(Solution solution,
File outputSolutionFile)
- Specified by:
write
in interface ProblemIO
- Parameters:
solution
- never nulloutputSolutionFile
- never null, parent directory already exists
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.