Interface IResultStreamer
- All Known Implementing Classes:
AbstractResultStreamer,SimpleResultStreamer
public interface IResultStreamer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugData(String debugString) voidDeprecated.Streaming results with Java serialization is deprecated.voidaddPrintStream(PrintStream printStream) getAsResultString(IEntity winner) Deprecated.Streaming results with Java serialization is deprecated: use the results of the optimization set withsetOptimization(IOptimization)oraddPrintStream(PrintStream)instead.com.dna.jopt.revision.algorithm.IOptimizationAlgorithmvoidsetOptimization(IOptimization opti) voidvoidstream2Optimization(IEntity winner)
-
Method Details
-
addDebugData
-
stream2Optimization
-
stream
-
setOptimization
-
getOptimization
IOptimization getOptimization() -
addPrintStream
-
getPrintStreamer
List<PrintStream> getPrintStreamer() -
getAsResultString
-
getOptimizationAlgorithm
com.dna.jopt.revision.algorithm.IOptimizationAlgorithm getOptimizationAlgorithm() -
addObjectOutputStream
Deprecated.Streaming results with Java serialization is deprecated. Take each result as anIOptimizationResultfrom the optimization set withsetOptimization(IOptimization), or add a text stream withaddPrintStream(PrintStream).Adds a stream that receives each streamed result written with Java serialization: the winner entity, or anIEntityContainerin the Java container format if an optimization is set.- Parameters:
oos- the stream
-
getObjectOutputStreams
Deprecated.Streaming results with Java serialization is deprecated: use the results of the optimization set withsetOptimization(IOptimization)oraddPrintStream(PrintStream)instead.Returns the streams added withaddObjectOutputStream(ObjectOutputStream).- Returns:
- the streams, empty if none was added
-