Class IraceConfig
java.lang.Object
es.urjc.etsii.grafo.autoconfig.irace.IraceConfig
This class is used to configure irace by the properties specified in the application.yml
section irace
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAuc()Decide if we should use the objective function directly or if we should calculate the AUC over the objective functionbooleanIs irace enabled?booleanisShell()Execute Irace in shell or using GraalVM?booleanIs time control enabled?voidsetAuc(boolean auc) Decide if we should use the objective function directly or if we should calculate the AUC over the objective functionvoidsetEnabled(boolean enabled) Is irace enabled?voidsetShell(boolean shell) Execute Irace in shell or using GraalVM?voidsetTimecontrol(boolean timecontrol) Enable or disable time control.
-
Constructor Details
-
IraceConfig
public IraceConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Is irace enabled?- Returns:
- true if irace is enabled, false otherwise
-
setEnabled
public void setEnabled(boolean enabled) Is irace enabled?- Parameters:
enabled- true to enable irace, false to disable
-
isShell
public boolean isShell()Execute Irace in shell or using GraalVM?- Returns:
- true if irace should be executed using ShellRLangRunner, false to use GraalRLangRunner
-
setShell
public void setShell(boolean shell) Execute Irace in shell or using GraalVM?- Parameters:
shell- true to execute irace using ShellRLangRunner, false to use GraalRLangRunner
-
isAuc
public boolean isAuc()Decide if we should use the objective function directly or if we should calculate the AUC over the objective function- Returns:
- trye if we should calculate the AUC, false to use the objective function applied to the solution
-
setAuc
public void setAuc(boolean auc) Decide if we should use the objective function directly or if we should calculate the AUC over the objective function- Parameters:
auc- true to calculate the AUC, false to use the objective function applied to the solution
-
isTimecontrol
public boolean isTimecontrol()Is time control enabled?- Returns:
- true if enabled, false otherwise
-
setTimecontrol
public void setTimecontrol(boolean timecontrol) Enable or disable time control.- Parameters:
timecontrol- true to enable, false to disable
-