Package es.urjc.etsii.grafo.util
Class Context.Configurator
java.lang.Object
es.urjc.etsii.grafo.util.Context.Configurator
- Enclosing class:
Context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Disables validations for the current thread.static void
Enables validations for the current thread.static List
<TimeStatsEvent> static BlockConfig
static ReferenceResultManager
static SolverConfig
static boolean
static void
resetRandom
(SolverConfig config, int iteration) Initialize or reset random only for the current threadstatic void
resetRandom
(RandomType randomType, long seed) Initialize or reset random only for the current threadstatic void
setBlockConfig
(BlockConfig config) setObjectives
(boolean multiObjective, Objective<?, S, I>[] objectives) static void
setObjectives
(Objective<?, ?, ?> objective) static void
setRandom
(RandomGenerator.JumpableGenerator jumpableGenerator) static void
setRefResultManager
(ReferenceResultManager referenceResultManager) static void
setSolverConfig
(SolverConfig config) setValidator
(SolutionValidator<S, I> validator)
-
Constructor Details
-
Configurator
public Configurator()
-
-
Method Details
-
setRandom
-
setSolverConfig
-
getSolverConfig
-
setBlockConfig
-
getBlockConfig
-
setValidator
public static <S extends Solution<S,I>, void setValidatorI extends Instance> (SolutionValidator<S, I> validator) -
resetRandom
Initialize or reset random only for the current thread- Parameters:
config
- solver configiteration
- current iteration, used to calculate a seed
-
resetRandom
Initialize or reset random only for the current thread- Parameters:
randomType
- random typeseed
- seed
-
setObjectives
-
setObjectives
-
getAndResetTimeEvents
-
setRefResultManager
-
getRefResultManager
-
getTrackedSolutions
-
enableValidation
public static void enableValidation()Enables validations for the current thread. Enabled by default. -
disableValidation
public static void disableValidation()Disables validations for the current thread. By default all validations are run. -
isValidationEnabled
public static boolean isValidationEnabled()
-