|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbil.common.AbstractAlgorithm
public abstract class AbstractAlgorithm
Stub implementation of the Algorithm interface.
Constructor Summary | |
---|---|
AbstractAlgorithm()
|
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. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAlgorithm()
Method Detail |
---|
public java.lang.Object getInput(java.lang.String name)
Algorithm
getInput
in interface Algorithm
name
- The name of the inputpublic void setInput(java.lang.String name, java.lang.Object value)
Algorithm
setInput
in interface Algorithm
name
- The name of the input.value
- The value of the input.public void setInputs(java.util.Map<java.lang.String,java.lang.Object> inputs)
Algorithm
setInputs
in interface Algorithm
inputs
- A map associating the names of the inputs to their values.public java.lang.Object getOutput(java.lang.String name)
Algorithm
getOutput
in interface Algorithm
name
- The name of the output.public abstract void run()
Algorithm
run
in interface Algorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |