Class SolverConfig

java.lang.Object
es.urjc.etsii.grafo.config.SolverConfig

@Configuration @ConfigurationProperties(prefix="solver") public class SolverConfig extends Object
Configuration file based on application.yml file.
  • 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

      public String getExperiments()

      Getter for the field experiments.

      Returns:
      a String object.
    • setExperiments

      public void setExperiments(String experiments)

      Setter for the field experiments.

      Parameters:
      experiments - a String 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 nWorkers.

      If nWorkers was set to 0 or a negative value, returns availableProcessors() / 2
      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

      public RandomType getRandomType()

      Getter for the field randomType.

      Returns:
      a RandomType object.
    • setRandomType

      public void setRandomType(RandomType randomType)

      Setter for the field randomType.

      Parameters:
      randomType - a RandomType 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

      public String getIntegrationKey()
      Integration key for the execution controller when running in follower mode.
      Returns:
      integration key as a String
    • setIntegrationKey

      public void setIntegrationKey(String integrationKey)
      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. See TimeStats 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. See TimeStats for more information.
      Parameters:
      timeStats - true if time stats should be enabled, false otherwise