Package es.urjc.etsii.grafo.config
Class InstanceConfiguration
java.lang.Object
es.urjc.etsii.grafo.config.InstanceConfiguration
@Configuration
@ConfigurationProperties(prefix="instances")
public class InstanceConfiguration
extends Object
Configuration properties related to intances
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet instances path for a given experimentgetPaths()
Get instances paths for all experimentsdouble
boolean
Loads all instances in RAM before starting each experiment.void
setForSelection
(String forSelection) void
Set instances folder for each experimentvoid
setPreliminarOutputPath
(String preliminarOutputPath) void
setPreliminarPercentage
(double preliminarPercentage) void
setPreload
(boolean preload) Loads all instances in RAM before starting each experiment.
-
Constructor Details
-
InstanceConfiguration
public InstanceConfiguration()
-
-
Method Details
-
setPath
Set instances folder for each experiment- Parameters:
paths
- instance paths for each experiment
-
getPath
Get instances path for a given experiment- Parameters:
experimentName
- experiment name- Returns:
- Instance path as a string
-
getPaths
Get instances paths for all experiments- Returns:
- Instance path as a string
-
isPreload
public boolean isPreload()Loads all instances in RAM before starting each experiment. Can be disabled for example in problems where instances are huge in order to save some RAM.- Returns:
- is preloading instances enabled?
-
setPreload
public void setPreload(boolean preload) Loads all instances in RAM before starting each experiment. Can be disabled for example in problems where instances are huge in order to save some RAM. Warning: Disabling it reverts instance solve order to instance name (lexicographically)- Parameters:
preload
- change preload configuration to the value given by this parameter
-
getForSelection
-
setForSelection
-
getPreliminarPercentage
public double getPreliminarPercentage() -
setPreliminarPercentage
public void setPreliminarPercentage(double preliminarPercentage) -
getPreliminarOutputPath
-
setPreliminarOutputPath
-