public class ParameterList extends java.lang.Object implements java.io.Serializable, IParameterList
Constructor and Description |
---|
ParameterList(Parameter[] params)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getNoOfParameters() |
Parameter[] |
getParameters() |
float[] |
getParameterValues() |
java.lang.String |
getParamsString() |
float |
getValue(int index) |
void |
readFromFile(java.lang.String filepath)
Reads the parameters from the specified file
|
void |
setValue(int index,
float value) |
java.lang.String |
toString() |
void |
writeToFile(java.lang.String filename)
Writes the values of each parameter to a file
|
public ParameterList(Parameter[] params)
public float[] getParameterValues()
getParameterValues
in interface IParameterList
public int getNoOfParameters()
public final float getValue(int index)
getValue
in interface IParameterList
index
- the 0 based index of the parameter.public final void setValue(int index, float value)
setValue
in interface IParameterList
index
- the 0 based index of the parametervalue
- the new value of the parameterpublic void writeToFile(java.lang.String filename)
writeToFile
in interface IParameterList
filename
- the name to use as filenamepublic void readFromFile(java.lang.String filepath)
IParameterList
readFromFile
in interface IParameterList
filepath
- the file to readpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getParamsString()
getParamsString
in interface IParameterList
public Parameter[] getParameters()
getParameters
in interface IParameterList