public class IterationConvergence extends Object implements Parameter<IterationConvergence.Value>
If the command-line configuration specifies neither a number of iterations nor a convergence threshold then a default number of iterations is used with an infinite convergence threshold. Otherwise, when either value is configured then an unset value is set to infinity.
Modifier and Type | Class and Description |
---|---|
static class |
IterationConvergence.Value
Encapsulate the number of iterations and the convergence threshold.
|
Constructor and Description |
---|
IterationConvergence(ParameterizedBase owner,
int defaultIterations)
Add this parameter to the list of parameters stored by owner.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
String |
getUsage()
An informal usage string.
|
IterationConvergence.Value |
getValue()
Get the parameter value.
|
boolean |
isHidden()
A hidden parameter is parsed from the command-line configuration but is
not printed in the usage string.
|
public IterationConvergence(ParameterizedBase owner, int defaultIterations)
owner
- the Parameterized
using this Parameter
defaultIterations
- the default number of iterations if neither
the number of iterations nor the convergence
threshold are specifiedpublic String getUsage()
Parameter
Optional parameters are enclosed by "[" and "]".
Generic values are represented by all-caps with specific values enclosed by "<" and ">".
getUsage
in interface Parameter<IterationConvergence.Value>
public boolean isHidden()
Parameter
isHidden
in interface Parameter<IterationConvergence.Value>
public void configure(ParameterTool parameterTool)
Parameter
configure
in interface Parameter<IterationConvergence.Value>
parameterTool
- parameter parserpublic IterationConvergence.Value getValue()
Parameter
getValue
in interface Parameter<IterationConvergence.Value>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.