|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Algorithm
Classes implementing this interface behave as algorithms. An algorithm receives inputs associated to unique names, runs, and produce outputs also associated to unique names.
| Method Summary | |
|---|---|
java.lang.Object |
getInput(java.lang.String name)
Get the input value associated to a name. |
java.lang.Object |
getOutput(java.lang.String name)
Gets an output of the algorithm from its name. |
void |
run()
Executes the algorithm once. |
void |
setInput(java.lang.String name,
java.lang.Object value)
Sets an input to the algorithm. |
void |
setInputs(java.util.Map<java.lang.String,java.lang.Object> inputs)
Sets multiple inputs to the algorithm. |
| Method Detail |
|---|
java.lang.Object getInput(java.lang.String name)
name - The name of the input
void setInput(java.lang.String name,
java.lang.Object value)
name - The name of the input.value - The value of the input.void setInputs(java.util.Map<java.lang.String,java.lang.Object> inputs)
inputs - A map associating the names of the inputs to their values.java.lang.Object getOutput(java.lang.String name)
name - The name of the output.void run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||