|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,MultiResult>
de.lmu.ifi.dbs.elki.algorithm.MetaMultiAlgorithm<O>
O - Object class.@Title(value="Meta Multi-Algorithm") @Description(value="Used to run multiple algorithms on the same database and merge the result into one MultiResult.") public class MetaMultiAlgorithm<O extends DatabaseObject>
Meta algorithm that will run multiple algorithms and join the result.
| Field Summary | |
|---|---|
private List<Algorithm<O,Result>> |
algorithms
The instantiated algorithms to run. |
static OptionID |
ALGORITHMS_ID
Object ID for algorithms. |
private ObjectListParameter<Algorithm<O,Result>> |
ALGORITHMS_PARAM
Parameter to specify the algorithm to be applied, must extend Algorithm. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
MetaMultiAlgorithm(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
protected MultiResult |
runInTime(Database<O> database)
The run method encapsulated in measure of runtime. |
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. |
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
|---|
isTime, isVerbose, run |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OptionID ALGORITHMS_ID
private final ObjectListParameter<Algorithm<O extends DatabaseObject,Result>> ALGORITHMS_PARAM
Algorithm.
Key: -algorithms
private List<Algorithm<O extends DatabaseObject,Result>> algorithms
| Constructor Detail |
|---|
public MetaMultiAlgorithm(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public void setTime(boolean time)
setTime in interface Algorithm<O extends DatabaseObject,MultiResult>setTime in class AbstractAlgorithm<O extends DatabaseObject,MultiResult>time - the flag to request output of performance timepublic void setVerbose(boolean verbose)
setVerbose in interface Algorithm<O extends DatabaseObject,MultiResult>setVerbose in class AbstractAlgorithm<O extends DatabaseObject,MultiResult>verbose - the flag to allow verbose messages while performing the
algorithm
protected MultiResult runInTime(Database<O> database)
throws IllegalStateException
AbstractAlgorithm
runInTime in class AbstractAlgorithm<O extends DatabaseObject,MultiResult>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).
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||