#include <CQParallel.h>
Inheritance diagram for CQParallel:
Public Member Functions | |
~CQParallel () | |
CQParallel (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) | |
In fact, what we are doing here is to get ourselves an accessor ACURL2FTS to do a proper fastQuery. | |
virtual CXMLElement * | query (const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest) |
virtual CIDRelevanceLevelPairList * | fastQuery (const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest) |
FIXME: useless in current scenario. | |
virtual CXMLElement * | getRandomImages (int inNumberOfInterestingImages) const |
virtual list< TID > * | getAllIDs () const |
virtual list< string > * | getAllURLs () const |
virtual list< pair< TID, string > > * | getAllIDURLPairs () const |
virtual bool | setAlgorithm (CAlgorithm &inAlgorithm) |
void | finishInit () |
it might be necessary to wait until all the children are added before ending the initialisation phase. | |
Protected Member Functions | |
virtual void | init () |
Classes | |
class | lCLocalAccessor |
used in CLocalAccessorMap | |
class | lCLocalAccessorMap |
This is going to be one of our main building blocks. It is a structure which contains a couple of CQuery structures, hands a query through to them, and then unifies the result. In fact this is the center of all this query tree business.
Probably we will put another layer into the class tree: The CQTreeNode, but let's first start.
Important: The basic assumption here is, that all children operate on the same collections. If this is not the case we have to be more careful, and most of all: we have to operate using URLs.
: Wolfgang Müller
|
we need to unregister the accessors used |
|
FIXME: useless in current scenario. Generally using IDs instead of URLs (for keeping communication overhead low, when doing things like CORBA). in this case we simply hand things through. this might be some kind of "take it and translate it" thing. however, at present we save the work. Implements CQuery. |
|
it might be necessary to wait until all the children are added before ending the initialisation phase. This function is called by CAlgorithm. What we are doing here is to find out the necessary accessor information for each child, and construct an accessor for it. Reimplemented from CQuery. |
|
get the IDs of all images (handed through to accessor) Reimplemented from CQuery. |
|
get the IDs of all images (handed through to accessor) |
|
get the IDs of all images (handed through to accessor) |
|
get some random images Reimplemented from CQuery. |
|
Initializer, used by both construcors Implements CQuery. |
|
calls fastQuery for every child, merges the results and translates them back into URLs difficulty: take into account that each child might operate on a different collection. |
|
set the Algorithm. same scheme as in setCollection Reimplemented from CQuery. |