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.intlongIntegration key for the execution controller when running in follower mode.longintintintGetter for the fieldnWorkers.Getter for the fieldrandomType.intGetter for the fieldrepetitions.longgetSeed()Getter for the fieldseed.intGet autoconfig tree depthbooleanbooleanisBenchmark.booleanScale area under curve using natural logarithmbooleanbooleanisParallelExecutor.booleanEnable collection of time statistics for each algorithm component execution.voidsetAutorestart(boolean autorestart) voidsetBenchmark(boolean benchmark) Setter for the fieldbenchmark.voidsetExperiments(String experiments) Setter for the fieldexperiments.voidsetExperimentsPerParameter(int experimentsPerParameter) voidsetIgnoreInitialMillis(long ignoreInitialMillis) voidsetIntegrationKey(String integrationKey) Integration key for the execution controller when running in follower mode.voidsetIntervalDurationMillis(long intervalDurationMillis) voidsetLogScaleArea(boolean logScaleArea) Scale area under curve using natural logarithmvoidsetMaxDerivationRepetition(int maxDerivationRepetition) voidsetMetrics(boolean metrics) voidsetMinimumNumberOfExperiments(int minimumNumberOfExperiments) voidsetnWorkers(int nWorkers) Setter for the fieldnWorkers.voidsetParallelExecutor(boolean parallelExecutor) Setter for the fieldparallelExecutor.voidsetRandomType(RandomType randomType) Setter for the fieldrandomType.voidsetRepetitions(int repetitions) Setter for the fieldrepetitions.voidsetSeed(long seed) Setter for the fieldseed.voidsetTimeStats(boolean timeStats) Enable collection of time statistics for each algorithm component execution.voidsetTreeDepth(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
Stringobject.
-
setExperiments
Setter for the field
experiments.- Parameters:
experiments- aStringobject.
-
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
RandomTypeobject.
-
setRandomType
Setter for the field
randomType.- Parameters:
randomType- aRandomTypeobject.
-
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. SeeTimeStatsfor 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. SeeTimeStatsfor more information.- Parameters:
timeStats- true if time stats should be enabled, false otherwise
-