|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
O
- the type of DatabaseObjects handled by this AlgorithmR
- the type of result to retrieve from this Algorithmpublic interface Algorithm<O extends DatabaseObject,R extends Result>
Specifies the requirements for any algorithm that is to be executable by the main class.
Any implementation needs not to take care of input nor output, parsing and so on. Those tasks are performed by the framework. An algorithm simply needs to ask for parameters that are algorithm specific.
Note: Any implementation is supposed to provide a constructor without parameters (default constructor).
AbstractAlgorithm
Method Summary | |
---|---|
R |
run(Database<O> database)
Runs the algorithm. |
void |
setTime(boolean time)
Sets whether whether the time should be assessed while executing the algorithm. |
void |
setVerbose(boolean verbose)
Sets whether verbose messages should be printed while executing the algorithm. |
Method Detail |
---|
R run(Database<O> database) throws IllegalStateException
database
- the database to run the algorithm on
IllegalStateException
- if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).void setVerbose(boolean verbose)
verbose
- the flag to allow verbose messages while performing the
algorithmvoid setTime(boolean time)
time
- the flag to request output of performance time
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |