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 Details

    • includeVariables

      protected final boolean includeVariables
      true to enable writing all decision variables; false otherwise.
  • Constructor Details

    • ResultFileWriterSettings

      public ResultFileWriterSettings()
      Constructs the default settings object.
    • ResultFileWriterSettings

      public ResultFileWriterSettings(Optional<Boolean> append, Optional<Boolean> includeVariables)
      Constructs a new result file settings object.
      Parameters:
      append - true to enable append mode, false otherwise
      includeVariables - true to enable writing all decision variables; false otherwise
  • Method Details

    • isIncludeVariables

      public boolean isIncludeVariables()
      Returns true if writing all decision variables; false otherwise.
      Returns:
      true if writing all decision variables; false otherwise
    • getDefault

      public static ResultFileWriter.ResultFileWriterSettings getDefault()
      Returns the default settings for writing result files.
      Returns:
      the default settings for writing result files
    • overwrite

      public static ResultFileWriter.ResultFileWriterSettings 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