public class BOAparameter
extends java.lang.Object
implements java.io.Serializable
Tournament.
If lower and higher bound is used, it also requires a step size and all
in-between values in the range are being generated immediately. Basically,
what is stored is [Lowerbound:Stepsize:Upperbound]. [1:5:20] = {1, 6, 11,
16}.| Constructor and Description |
|---|
BOAparameter(java.lang.String name,
java.lang.Double low,
java.lang.Double high,
java.lang.Double step)
Describes a parameter for a BOA component.
|
BOAparameter(java.lang.String name,
java.lang.Double low,
java.lang.Double high,
java.lang.Double step,
java.lang.String description)
Describes a parameter for a decoupled component.
|
BOAparameter(java.lang.String name,
java.lang.Double defaultValue,
java.lang.String description)
Describes a parameter for a BOA component with a fixed single value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription() |
java.lang.Double |
getHigh() |
java.lang.Double |
getLow() |
java.lang.String |
getName() |
java.lang.Double |
getStep() |
java.util.HashSet<Pair<java.lang.String,java.lang.Double>> |
getValuePairs()
Returns all values of the parameters which satisfy
[Lowerbound:Stepsize:Upperbound].
|
java.lang.String |
toString() |
java.lang.String |
toXML() |
BOAparameter |
withDescription(java.lang.String newDescr) |
BOAparameter |
withHigh(java.lang.Double newHigh) |
BOAparameter |
withLow(java.lang.Double newLow) |
BOAparameter |
withStep(java.lang.Double step) |
public BOAparameter(java.lang.String name,
java.lang.Double low,
java.lang.Double high,
java.lang.Double step)
name - of the parameter.low - value of the range.high - value of the range.step - of the range.public BOAparameter(java.lang.String name,
java.lang.Double defaultValue,
java.lang.String description)
name - defaultValue - description - public BOAparameter(java.lang.String name,
java.lang.Double low,
java.lang.Double high,
java.lang.Double step,
java.lang.String description)
name - of the parameter.low - value of the range.high - value of the range.step - of the range.description - of the parameter.public java.util.HashSet<Pair<java.lang.String,java.lang.Double>> getValuePairs()
public java.lang.String getName()
public java.lang.Double getLow()
public java.lang.Double getHigh()
public java.lang.Double getStep()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDescription()
public java.lang.String toXML()
public BOAparameter withDescription(java.lang.String newDescr)
newDescr - the new description for this parameterBOAparameter with same settings as this but new
description as givenpublic BOAparameter withLow(java.lang.Double newLow)
newLow - the new low value for this parameter.public BOAparameter withHigh(java.lang.Double newHigh)
newHigh - the new high value for this parameterBOAparameter with same settings as this but with the
new high value. If the high value is < low, then low is also set
to newHigh.public BOAparameter withStep(java.lang.Double step)
step - the new step valueBOAparameter with same settings as this but with step
value as given