Package org.opt4j.common.logger
Class LoggerModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.viewer.VisualizationModule
org.opt4j.common.logger.LoggerModule
- All Implemented Interfaces:
com.google.inject.Module
Module for logging.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Stringprotected intprotected booleanprotected booleanFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.intReturns the step size of the evaluations.Returns the filename.intReturns the step size of the iterations.booleanReturnstrueif the logger observes the number of evaluations.booleanReturnstrueif the logger observes the number of iterations.voidsetEvaluationStep(int evaluationStep) Sets the step size of the evaluations.voidsetFilename(String filename) Sets the filename.voidsetIterationStep(int iterationStep) Sets the step size of the iterations.voidsetLoggingPerEvaluation(boolean loggingPerEvaluation) Sets the observation for the number of evaluations.voidsetLoggingPerIteration(boolean loggingPerIteration) Sets the observation for the number of iterations.Methods inherited from class org.opt4j.viewer.VisualizationModule
addIndividualMouseListener, addIndividualMouseListener, addToolBarService, addToolBarServiceMethods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multiMethods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
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:Opt4JModuleConfigure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
configin classOpt4JModule- See Also:
-
Binder
-
getFilename
Returns the filename.- Returns:
- the filename
- See Also:
-
setFilename
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()Returnstrueif the logger observes the number of evaluations.- Returns:
trueif the logger observes the number of evaluations
-
setLoggingPerEvaluation
public void setLoggingPerEvaluation(boolean loggingPerEvaluation) Sets the observation for the number of evaluations.- Parameters:
loggingPerEvaluation-trueif the logger observes the number of evaluations
-
isLoggingPerIteration
public boolean isLoggingPerIteration()Returnstrueif the logger observes the number of iterations.- Returns:
trueif the logger observes the number of iterations
-
setLoggingPerIteration
public void setLoggingPerIteration(boolean loggingPerIteration) Sets the observation for the number of iterations.- Parameters:
loggingPerIteration-trueif the logger observes the number of iterations
-