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 voidDisables validations for the current thread.static voidEnables validations for the current thread.static List<TimeStatsEvent> static BlockConfigstatic ReferenceResultManagerstatic SolverConfigstatic booleanstatic voidresetRandom(SolverConfig config, int iteration) Initialize or reset random only for the current threadstatic voidresetRandom(RandomType randomType, long seed) Initialize or reset random only for the current threadstatic voidsetBlockConfig(BlockConfig config) setObjectives(boolean multiObjective, Objective<?, S, I>[] objectives) static voidsetObjectives(Objective<?, ?, ?> objective) static voidsetRandom(RandomGenerator.JumpableGenerator jumpableGenerator) static voidsetRefResultManager(ReferenceResultManager referenceResultManager) static voidsetSolverConfig(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()
-