org.drools.planner.examples.common.persistence
Class XstreamSolutionDaoImpl
java.lang.Object
org.drools.planner.examples.common.persistence.XstreamSolutionDaoImpl
- All Implemented Interfaces:
- SolutionDao
- Direct Known Subclasses:
- CloudBalancingDaoImpl, CurriculumCourseDaoImpl, ExaminationDaoImpl, Manners2009DaoImpl, NQueensDaoImpl, NurseRosteringDaoImpl, PatientAdmissionScheduleDaoImpl, SimpleTravelingTournamentDaoImpl, SmartTravelingTournamentDaoImpl, TrainDesignDaoImpl, TspDaoImpl
public abstract class XstreamSolutionDaoImpl
- extends Object
- implements SolutionDao
|
Field Summary |
protected org.slf4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
XstreamSolutionDaoImpl
public XstreamSolutionDaoImpl(String dirName,
Class... xstreamAnnotations)
getDirName
public String getDirName()
- Specified by:
getDirName in interface SolutionDao
getDataDir
public File getDataDir()
- Specified by:
getDataDir in interface SolutionDao
readSolution
public Solution readSolution(File file)
- Specified by:
readSolution in interface SolutionDao
readSolution
public Solution readSolution(InputStream in)
- Specified by:
readSolution in interface SolutionDao
postRead
protected void postRead(Solution solution)
writeSolution
public void writeSolution(Solution solution,
File file)
- Specified by:
writeSolution in interface SolutionDao
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.