Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class XStreamXmlSolverFactory<Solution_> extends AbstractSolverFactory<Solution_>
Solver
with XStream
.SolverFactory
Modifier and Type | Field and Description |
---|---|
protected com.thoughtworks.xstream.XStream |
xStream |
solverConfig, solverConfigContext
Constructor and Description |
---|
XStreamXmlSolverFactory() |
XStreamXmlSolverFactory(SolverConfigContext solverConfigContext) |
Modifier and Type | Method and Description |
---|---|
void |
addXStreamAnnotations(Class<?>... xStreamAnnotations) |
static com.thoughtworks.xstream.XStream |
buildXStream()
Builds the
XStream setup which is used to read/write solver configs and benchmark configs. |
XStreamXmlSolverFactory<Solution_> |
configure(File solverConfigFile) |
XStreamXmlSolverFactory<Solution_> |
configure(InputStream in) |
XStreamXmlSolverFactory<Solution_> |
configure(Reader reader) |
XStreamXmlSolverFactory<Solution_> |
configure(String solverConfigResource) |
com.thoughtworks.xstream.XStream |
getXStream() |
buildSolver, cloneSolverFactory, getSolverConfig, getSolverConfigContext
createEmpty, createEmpty, createEmptyFromKieContainer, createEmptyFromKieContainer, createFromKieContainerXmlResource, createFromKieContainerXmlResource, createFromKieContainerXmlResource, createFromXmlFile, createFromXmlFile, createFromXmlInputStream, createFromXmlInputStream, createFromXmlReader, createFromXmlReader, createFromXmlResource, createFromXmlResource
public XStreamXmlSolverFactory()
public XStreamXmlSolverFactory(SolverConfigContext solverConfigContext)
solverConfigContext
- never nullpublic static com.thoughtworks.xstream.XStream buildXStream()
XStream
setup which is used to read/write solver configs
and benchmark configs.
It should never be used to read/write solutions
.
Use XStreamSolutionFileIO for that instead.public void addXStreamAnnotations(Class<?>... xStreamAnnotations)
xStreamAnnotations
- never nullXStream.processAnnotations(Class[])
public com.thoughtworks.xstream.XStream getXStream()
public XStreamXmlSolverFactory<Solution_> configure(String solverConfigResource)
solverConfigResource
- never null, a classpath resource
as defined by ClassLoader.getResource(String)
public XStreamXmlSolverFactory<Solution_> configure(File solverConfigFile)
public XStreamXmlSolverFactory<Solution_> configure(InputStream in)
public XStreamXmlSolverFactory<Solution_> configure(Reader reader)
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.