|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Algorithms
List of algorithms with the same signature.
Concept discussed between Jan Hendrikse, Willem Nieuwenhuis and Wim Koolhoven on 23-08-05.
| Method Summary | |
|---|---|
double[] |
calculate(double[] params)
Calculates the results of the Algorithms for these parameters. |
Algorithm |
getAlgorithm(int index)
returns the requested Algorithm |
int |
getNrAlgorithms()
returns the number of Algorithms |
int |
getNrParams()
returns the number of parameters. |
java.lang.String |
getParamDescription(int paramNr)
may return a Description of the parameter. |
java.lang.String |
getParamName(int paramNr)
returns the Name of the parameter. |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Method Detail |
|---|
double[] calculate(double[] params)
params - the Array has to have as many elements as specified with getNrParams()
java.lang.RuntimeExceptionint getNrParams()
java.lang.String getParamName(int paramNr)
throws java.lang.IndexOutOfBoundsException
Algorithms are supposed to use the same names
paramNr - starts counting at 0
paramNr
java.lang.IndexOutOfBoundsException - when paramNr is negative or larger or equal to {#getNrParams()}
java.lang.String getParamDescription(int paramNr)
throws java.lang.IndexOutOfBoundsException
Algorithms are supposed to use the same description
paramNr - starts counting at 0
paramNr
java.lang.IndexOutOfBoundsException - when paramNr is negative or larger or equal to {#getNrParams()}int getNrAlgorithms()
Algorithms
Algorithm getAlgorithm(int index)
index -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||