Class AbstractResultStreamer
java.lang.Object
com.dna.jopt.framework.stream.result.AbstractResultStreamer
- All Implemented Interfaces:
IResultStreamer
- Direct Known Subclasses:
SimpleResultStreamer
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractResultStreamer(com.dna.jopt.revision.algorithm.IOptimizationAlgorithm algo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugData(String debugString) voidDeprecated.Streaming results with Java serialization is deprecated.voidaddPrintStream(PrintStream printStream) 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) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IResultStreamer
getAsResultString, stream2Optimization
-
Constructor Details
-
AbstractResultStreamer
public AbstractResultStreamer(com.dna.jopt.revision.algorithm.IOptimizationAlgorithm algo)
-
-
Method Details
-
getOptimizationAlgorithm
public com.dna.jopt.revision.algorithm.IOptimizationAlgorithm getOptimizationAlgorithm()- Specified by:
getOptimizationAlgorithmin interfaceIResultStreamer
-
stream
- Specified by:
streamin interfaceIResultStreamer
-
setOptimization
- Specified by:
setOptimizationin interfaceIResultStreamer
-
getOptimization
- Specified by:
getOptimizationin interfaceIResultStreamer
-
addPrintStream
- Specified by:
addPrintStreamin interfaceIResultStreamer
-
getPrintStreamer
- Specified by:
getPrintStreamerin interfaceIResultStreamer
-
addObjectOutputStream
@Deprecated(since="8.0.0", forRemoval=false) public void addObjectOutputStream(ObjectOutputStream oos) 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. Each call logs one warning that this path is deprecated.- Specified by:
addObjectOutputStreamin interfaceIResultStreamer- Parameters:
oos- the stream
-
getObjectOutputStreams
@Deprecated(since="8.0.0", forRemoval=false) public List<ObjectOutputStream> 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).- Specified by:
getObjectOutputStreamsin interfaceIResultStreamer- Returns:
- the streams, empty if none was added
-
addDebugData
- Specified by:
addDebugDatain interfaceIResultStreamer
-