Class LoggerModule

java.lang.Object
com.google.inject.AbstractModule
All Implemented Interfaces:
com.google.inject.Module

public class LoggerModule extends VisualizationModule
Module for logging.
See Also:
  • Field Details

    • filename

      protected String filename
    • loggingPerEvaluation

      protected boolean loggingPerEvaluation
    • loggingPerIteration

      protected boolean loggingPerIteration
    • evaluationStep

      protected int evaluationStep
    • iterationStep

      protected int iterationStep
  • Constructor Details

    • LoggerModule

      public LoggerModule()
  • Method Details

    • config

      public void config()
      Description copied from class: Opt4JModule
      Configure the module. Bind constants, listeners, and bind arbitrary classes.
      Specified by:
      config in class Opt4JModule
      See Also:
      • Binder
    • getFilename

      public String getFilename()
      Returns the filename.
      Returns:
      the filename
      See Also:
    • setFilename

      public void setFilename(String filename)
      Sets the filename.
      Parameters:
      filename - the filename
      See Also:
    • getEvaluationStep

      public int getEvaluationStep()
      Returns the step size of the evaluations.
      Returns:
      the step size of the evaluations
      See Also:
    • setEvaluationStep

      public void setEvaluationStep(int evaluationStep)
      Sets the step size of the evaluations.
      Parameters:
      evaluationStep - the step size of the evaluations
      See Also:
    • getIterationStep

      public int getIterationStep()
      Returns the step size of the iterations.
      Returns:
      the step size of the iterations
      See Also:
    • setIterationStep

      public void setIterationStep(int iterationStep)
      Sets the step size of the iterations.
      Parameters:
      iterationStep - the step size of the iterations
      See Also:
    • isLoggingPerEvaluation

      public boolean isLoggingPerEvaluation()
      Returns true if the logger observes the number of evaluations.
      Returns:
      true if the logger observes the number of evaluations
    • setLoggingPerEvaluation

      public void setLoggingPerEvaluation(boolean loggingPerEvaluation)
      Sets the observation for the number of evaluations.
      Parameters:
      loggingPerEvaluation - true if the logger observes the number of evaluations
    • isLoggingPerIteration

      public boolean isLoggingPerIteration()
      Returns true if the logger observes the number of iterations.
      Returns:
      true if the logger observes the number of iterations
    • setLoggingPerIteration

      public void setLoggingPerIteration(boolean loggingPerIteration)
      Sets the observation for the number of iterations.
      Parameters:
      loggingPerIteration - true if the logger observes the number of iterations