Package de.uka.ipd.sdq.tcfmoop.config
Class MaxGenerationNumberConfig
java.lang.Object
de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
de.uka.ipd.sdq.tcfmoop.config.MaxGenerationNumberConfig
- All Implemented Interfaces:
IConfiguration
Configuration class for MaxGenerationNumber termination criterion.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of iterations that the optimization framework should execute.void
setMaximumNumberOfIterations
(int maximumNumberOfIterations) Set the maximum number of iterations that the optimization algorithm will perform before terminating.boolean
Checks the configuration object for correctness.Methods inherited from class de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
getTerminationCriterionName
-
Constructor Details
-
MaxGenerationNumberConfig
public MaxGenerationNumberConfig()
-
-
Method Details
-
validateConfiguration
public boolean validateConfiguration()Checks the configuration object for correctness. Should be called before accessing any of the data of the configuration object- Returns:
- true - The configuration is correct false - The configuration is incomplete or wrong
-
setMaximumNumberOfIterations
public void setMaximumNumberOfIterations(int maximumNumberOfIterations) throws InvalidConfigException Set the maximum number of iterations that the optimization algorithm will perform before terminating.- Parameters:
maximumNumberOfIterations
- if parameter is less then 1, an Exception is thrown.- Throws:
InvalidConfigException
- if the supplied parameter do not conform to the required conditions.
-
getMaximumNumberOfIterations
public int getMaximumNumberOfIterations()Returns the number of iterations that the optimization framework should execute.- Returns:
- the number of iterations that the optimization framework should execute.
-