public class StrategyParameters
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
strategyParam
Parameters as specified in the agent repository.
|
| Constructor and Description |
|---|
StrategyParameters()
Create an empty hashmap of parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVariable(java.lang.String name,
java.lang.String value)
Add a parameter to the list of parameters.
|
double |
getValueAsDouble(java.lang.String name)
Returns the value of the parameter with the given name as double.
|
java.lang.String |
getValueAsString(java.lang.String name)
Returns the value of the parameter with the given name as string.
|
java.lang.String |
toString() |
protected java.util.HashMap<java.lang.String,java.lang.String> strategyParam
public StrategyParameters()
public void addVariable(java.lang.String name,
java.lang.String value)
name - of the parameter.value - of the parameter.public java.lang.String getValueAsString(java.lang.String name)
name - of the given parameter.public double getValueAsDouble(java.lang.String name)
name - of the given parameter.public java.lang.String toString()
toString in class java.lang.Object