|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.meta.ParameterSet
public class ParameterSet
A set of parameters generated by a ParameterOptimizationOperator.
| Nested Class Summary | |
|---|---|
private static class |
ParameterSet.ParameterValue
The best value of a parameter of an operator. |
| Field Summary | |
|---|---|
private java.util.List<ParameterSet.ParameterValue> |
parameterValues
|
private PerformanceVector |
performance
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
private |
ParameterSet()
Private constructor for the read() method. |
|
ParameterSet(Operator[] operators,
java.lang.String[] parameters,
java.lang.String[] values,
PerformanceVector value)
Constructs a new ParameterSet. |
| Method Summary | |
|---|---|
void |
applyAll(Experiment experiment,
java.util.Map nameMap)
Applies all parameters in the set to their operators. |
java.lang.String |
getExtension()
Returns the default extension in file choosers. |
java.lang.String |
getFileDescription()
Returns the file description used in file choosers. |
java.lang.String |
getName()
The default implementation returns the classname without package. |
java.lang.String |
getParameterString()
|
PerformanceVector |
getPerformance()
Returns the performance of this parameter set. |
static ParameterSet |
read(java.io.BufferedReader reader)
Reads a parameter set from a file. |
void |
save(java.io.File file)
Writes the object into the given file. |
java.lang.String |
toString()
|
void |
write(java.io.PrintWriter writer)
|
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, getVisualisationComponent, toHTML, toResultString |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Field Detail |
|---|
private static final long serialVersionUID
private java.util.List<ParameterSet.ParameterValue> parameterValues
private PerformanceVector performance
| Constructor Detail |
|---|
private ParameterSet()
public ParameterSet(Operator[] operators,
java.lang.String[] parameters,
java.lang.String[] values,
PerformanceVector value)
values[i] for the parameter parameters[i]
of the operator named operators[i].
| Method Detail |
|---|
public java.lang.String getName()
ResultObjectAdapter
getName in interface ResultObjectgetName in class ResultObjectAdapterpublic java.lang.String getParameterString()
public java.lang.String toString()
toString in class java.lang.Objectpublic PerformanceVector getPerformance()
public void applyAll(Experiment experiment,
java.util.Map nameMap)
public void save(java.io.File file)
throws java.io.IOException
Saveable
save in interface Saveablejava.io.IOExceptionpublic java.lang.String getExtension()
Saveable
getExtension in interface Saveablepublic java.lang.String getFileDescription()
Saveable
getFileDescription in interface Saveablepublic void write(java.io.PrintWriter writer)
public static ParameterSet read(java.io.BufferedReader reader)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||