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
public class MaxGenerationNumberConfig extends AbstractConfiguration
Configuration class for MaxGenerationNumber termination criterion.
-
-
Constructor Summary
Constructors Constructor Description MaxGenerationNumberConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaximumNumberOfIterations()
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
validateConfiguration()
Checks the configuration object for correctness.-
Methods inherited from class de.uka.ipd.sdq.tcfmoop.config.AbstractConfiguration
getTerminationCriterionName
-
-
-
-
Method Detail
-
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.
-
-