Package org.moeaframework.analysis.io
Class ResultFileWriter.ResultFileWriterSettings
java.lang.Object
org.moeaframework.analysis.io.OutputWriter.OutputWriterSettings
org.moeaframework.analysis.io.ResultFileWriter.ResultFileWriterSettings
- Enclosing class:
- ResultFileWriter
public static class ResultFileWriter.ResultFileWriterSettings
extends OutputWriter.OutputWriterSettings
The settings used when writing result files.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
true
to enable writing all decision variables;false
otherwise.Fields inherited from class org.moeaframework.analysis.io.OutputWriter.OutputWriterSettings
append
-
Constructor Summary
ConstructorDescriptionConstructs the default settings object.ResultFileWriterSettings
(Optional<Boolean> append, Optional<Boolean> includeVariables) Constructs a new result file settings object. -
Method Summary
Modifier and TypeMethodDescriptionfrom
(org.apache.commons.cli.CommandLine commandLine) Returns the settings produced from the given command line options.Returns the default settings for writing result files.boolean
Returnstrue
if writing all decision variables;false
otherwise.Returns the settings with append mode disabled.Methods inherited from class org.moeaframework.analysis.io.OutputWriter.OutputWriterSettings
isAppend
-
Field Details
-
includeVariables
protected final boolean includeVariablestrue
to enable writing all decision variables;false
otherwise.
-
-
Constructor Details
-
ResultFileWriterSettings
public ResultFileWriterSettings()Constructs the default settings object. -
ResultFileWriterSettings
Constructs a new result file settings object.- Parameters:
append
-true
to enable append mode,false
otherwiseincludeVariables
-true
to enable writing all decision variables;false
otherwise
-
-
Method Details
-
isIncludeVariables
public boolean isIncludeVariables()Returnstrue
if writing all decision variables;false
otherwise.- Returns:
true
if writing all decision variables;false
otherwise
-
getDefault
Returns the default settings for writing result files.- Returns:
- the default settings for writing result files
-
overwrite
Returns the settings with append mode disabled.- Returns:
- the settings with append mode disabled
-
from
public static ResultFileWriter.ResultFileWriterSettings from(org.apache.commons.cli.CommandLine commandLine) Returns the settings produced from the given command line options.- Parameters:
commandLine
- the given command line options- Returns:
- the settings
-