#include <CAlgorithmCollection.h>
Inheritance diagram for CAlgorithmCollection:

Public Member Functions | |
| CAlgorithm * | getAlgorithmInConstruction () |
| returns a pointer to the algorithm in construction | |
| void | startAlgorithmConstruction (CAlgorithm *inAlgorithm) |
| CAlgorithmCollection (string inConfigFileName) | |
| Constructor. | |
| ~CAlgorithmCollection () | |
| Destructor destroys all members of CContent. | |
| void | addAlgorithm (CAlgorithm *inAlgorithm) |
| adding a completely built algorithm XML document tree | |
| CAlgorithm & | getAlgorithmByType (const string &inType) const |
| Algorithm for TYPE => permits configuring probably only the pointered version is interesting. | |
| bool | containsAlgorithmByType (const string &inType) const |
| Algorithm for TYPE => permits configuring probably only the pointered version is interesting. | |
| CAlgorithm * | makeAlgorithmByType (const string &inType) const |
| Creates a new algorithm for agiven type by cloning what you would get with getAlgorithm. | |
| CAlgorithm * | getDefaultAlgorithm () const |
| A default algorithm for the default session This algorithm will be given by the ONE ALGORITHM which has the type "adefault". | |
| CAlgorithm * | makeDefaultAlgorithm () const |
| creates a copy of what you'd get with the above function get... | |
| CXMLElement * | getAlgorithmList (const CXMLElement &inGetAlgorithms) const |
| For handshaking: This makes you a list of all algorithms which work with a given query paradigm. | |
| string | toXML (bool inIsPrivate=false) const |
| for shandshake and for state output | |
| CXMLElement * | toXMLElement () const |
| for get-algorithms: the output is an CXMLElement, containing an algorithm-list element. | |
| CQuery * | makeQuery (const string &inBaseType, CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm, CStaticQueryFactory &inFactory) |
| handed through to the CStaticQueryFactory | |
Protected Types | |
| typedef map< string, CAlgorithm * > | CContent |
| The content of an algorithm collection is a map between algorihm type and a pointer to the corresponding CAlgorithm. | |
Protected Member Functions | |
| CContent::const_iterator | begin () const |
| for being able to read all the content | |
| CContent::const_iterator | end () const |
| for being able to read all the content | |
Protected Attributes | |
| CAlgorithm * | mAlgorithmInConstruction |
| as the name sais | |
| CContent | mContent |
We provide a list of algorithms which correspond to so-called "basetypes". At present there are only two: bayesian and inverted_file.
Each algorithm which will be configured in the configuration file will have a basetype. Corresponding to this there is generated a CQuery structure for each algorithm out of the configuration.
Wolfgang Mueller
|
|
Creates a new algorithm for agiven type by cloning what you would get with getAlgorithm. The values made here will be used as default in the subsequent CQuery building process. |