Package es.urjc.etsii.grafo.config
Class SolverConfig
java.lang.Object
es.urjc.etsii.grafo.config.SolverConfig
Configuration file based on application.yml file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldexperiments
.int
long
Integration key for the execution controller when running in follower mode.long
int
int
int
Getter for the fieldnWorkers
.Getter for the fieldrandomType
.int
Getter for the fieldrepetitions
.long
getSeed()
Getter for the fieldseed
.int
Get autoconfig tree depthboolean
boolean
isBenchmark.boolean
Scale area under curve using natural logarithmboolean
boolean
isParallelExecutor.boolean
Enable collection of time statistics for each algorithm component execution.void
setAutorestart
(boolean autorestart) void
setBenchmark
(boolean benchmark) Setter for the fieldbenchmark
.void
setExperiments
(String experiments) Setter for the fieldexperiments
.void
setExperimentsPerParameter
(int experimentsPerParameter) void
setIgnoreInitialMillis
(long ignoreInitialMillis) void
setIntegrationKey
(String integrationKey) Integration key for the execution controller when running in follower mode.void
setIntervalDurationMillis
(long intervalDurationMillis) void
setLogScaleArea
(boolean logScaleArea) Scale area under curve using natural logarithmvoid
setMaxDerivationRepetition
(int maxDerivationRepetition) void
setMetrics
(boolean metrics) void
setMinimumNumberOfExperiments
(int minimumNumberOfExperiments) void
setnWorkers
(int nWorkers) Setter for the fieldnWorkers
.void
setParallelExecutor
(boolean parallelExecutor) Setter for the fieldparallelExecutor
.void
setRandomType
(RandomType randomType) Setter for the fieldrandomType
.void
setRepetitions
(int repetitions) Setter for the fieldrepetitions
.void
setSeed
(long seed) Setter for the fieldseed
.void
setTimeStats
(boolean timeStats) Enable collection of time statistics for each algorithm component execution.void
setTreeDepth
(int treeDepth) Set autoconfig tree depth
-
Constructor Details
-
SolverConfig
public SolverConfig()
-
-
Method Details
-
getSeed
public long getSeed()Getter for the field
seed
.- Returns:
- a int.
-
setSeed
public void setSeed(long seed) Setter for the field
seed
.- Parameters:
seed
- a int.
-
getExperiments
Getter for the field
experiments
.- Returns:
- a
String
object.
-
setExperiments
Setter for the field
experiments
.- Parameters:
experiments
- aString
object.
-
getRepetitions
public int getRepetitions()Getter for the field
repetitions
.- Returns:
- a int.
-
setRepetitions
public void setRepetitions(int repetitions) Setter for the field
repetitions
.- Parameters:
repetitions
- a int.
-
isParallelExecutor
public boolean isParallelExecutor()isParallelExecutor.
- Returns:
- a boolean.
-
setParallelExecutor
public void setParallelExecutor(boolean parallelExecutor) Setter for the field
parallelExecutor
.- Parameters:
parallelExecutor
- a boolean.
-
getnWorkers
public int getnWorkers()Getter for the field
If nWorkers was set to 0 or a negative value, returns availableProcessors() / 2nWorkers
.- Returns:
- a int.
-
setnWorkers
public void setnWorkers(int nWorkers) Setter for the field
nWorkers
.- Parameters:
nWorkers
- a int.
-
isBenchmark
public boolean isBenchmark()isBenchmark.
- Returns:
- a boolean.
-
setBenchmark
public void setBenchmark(boolean benchmark) Setter for the field
benchmark
.- Parameters:
benchmark
- a boolean.
-
getRandomType
Getter for the field
randomType
.- Returns:
- a
RandomType
object.
-
setRandomType
Setter for the field
randomType
.- Parameters:
randomType
- aRandomType
object.
-
getTreeDepth
public int getTreeDepth()Get autoconfig tree depth- Returns:
- autoconfig tree depth
-
setTreeDepth
public void setTreeDepth(int treeDepth) Set autoconfig tree depth- Parameters:
treeDepth
- autoconfig tree depth
-
isMetrics
public boolean isMetrics() -
setMetrics
public void setMetrics(boolean metrics) -
getIgnoreInitialMillis
public long getIgnoreInitialMillis() -
setIgnoreInitialMillis
public void setIgnoreInitialMillis(long ignoreInitialMillis) -
getIntervalDurationMillis
public long getIntervalDurationMillis() -
setIntervalDurationMillis
public void setIntervalDurationMillis(long intervalDurationMillis) -
getExperimentsPerParameter
public int getExperimentsPerParameter() -
setExperimentsPerParameter
public void setExperimentsPerParameter(int experimentsPerParameter) -
getMinimumNumberOfExperiments
public int getMinimumNumberOfExperiments() -
setMinimumNumberOfExperiments
public void setMinimumNumberOfExperiments(int minimumNumberOfExperiments) -
isAutorestart
public boolean isAutorestart() -
setAutorestart
public void setAutorestart(boolean autorestart) -
getMaxDerivationRepetition
public int getMaxDerivationRepetition() -
setMaxDerivationRepetition
public void setMaxDerivationRepetition(int maxDerivationRepetition) -
isLogScaleArea
public boolean isLogScaleArea()Scale area under curve using natural logarithm- Returns:
- true if area should be scaled, false to keep value as is
-
setLogScaleArea
public void setLogScaleArea(boolean logScaleArea) Scale area under curve using natural logarithm- Parameters:
logScaleArea
- true if area should be scaled, false to keep value as is
-
getIntegrationKey
Integration key for the execution controller when running in follower mode.- Returns:
- integration key as a String
-
setIntegrationKey
Integration key for the execution controller when running in follower mode.- Parameters:
integrationKey
- integration key as a String
-
isTimeStats
public boolean isTimeStats()Enable collection of time statistics for each algorithm component execution. SeeTimeStats
for more information.- Returns:
- true if time stats are enabled, false otherwise
-
setTimeStats
public void setTimeStats(boolean timeStats) Enable collection of time statistics for each algorithm component execution. SeeTimeStats
for more information.- Parameters:
timeStats
- true if time stats should be enabled, false otherwise
-