#include <matchClassad.h>
Inheritance diagram for MatchClassAd:


Public Member Functions | |
| MatchClassAd () | |
| Default constructor. | |
| MatchClassAd (ClassAd *al, ClassAd *ar) | |
| Constructor which builds the CondorClassad given two ads. | |
| ~MatchClassAd () | |
| Default destructor. | |
| bool | InitMatchClassAd (ClassAd *al, ClassAd *ar) |
| Method to initialize a MatchClassad given two ClassAds. | |
| bool | ReplaceLeftAd (ClassAd *al) |
| Replaces ad in the left context, or insert one if an ad did not previously exist. | |
| bool | ReplaceRightAd (ClassAd *ar) |
| Replaces ad in the right context, or insert one if an ad did not previously exist. | |
| ClassAd * | GetLeftAd () |
| Gets the ad in the left context. | |
| ClassAd * | GetRightAd () |
| Gets the ad in the right context. | |
| ClassAd * | GetLeftContext () |
| Gets the left context ad. | |
| ClassAd * | GetRightContext () |
| Gets the right context ad. | |
| ClassAd * | RemoveLeftAd () |
| Removes the left candidate from the match classad. | |
| ClassAd * | RemoveRightAd () |
| Removes the right candidate from the match classad. | |
Static Public Member Functions | |
| MatchClassAd * | MakeMatchClassAd (ClassAd *al, ClassAd *ar) |
| Factory method to make a MatchClassad given two ClassAds to be matched. | |
Protected Attributes | |
| const ClassAd * | ladParent |
| const ClassAd * | radParent |
| ClassAd * | lCtx |
| ClassAd * | rCtx |
| ClassAd * | lad |
| ClassAd * | rad |
The top-level ClassAd is defined as follows:
[ symmetricMatch = leftMatchesRight && rightMatchesLeft; leftMatchesRight = adcr.ad.requirements; rightMatchesLeft = adcl.ad.requirements; leftRankValue = adcl.ad.rank; rightRankValue = adcr.ad.rank; adcl = [ other = adcr.ad; my = ad; // for condor backwards compatibility target = other; // for condor backwards compatibility ad = [ // the ``left'' match candidate goes here ] ]; adcr = [ other = adcl.ad; my = ad; // for condor backwards compatibility target = other; // for condor backwards compatibility ad = [ // the ``right'' match candidate goes here ] ]; ]
Constructor & Destructor Documentation
|
||||||||||||
|
Constructor which builds the CondorClassad given two ads.
|
|
|
Gets the ad in the left context.
|
|
|
Gets the left context ad.
(
|
|
|
Gets the ad in the right context.
|
|
|
Gets the right context ad.
(
|
|
||||||||||||
|
Method to initialize a MatchClassad given two ClassAds. The old expressions in the classad are deleted.
|
|
||||||||||||
|
Factory method to make a MatchClassad given two ClassAds to be matched.
|
|
|
Removes the left candidate from the match classad. If the candidate ``lives'' in another data structure, this method should be called so that the match classad doesn't delete the candidate.
|
|
|
Removes the right candidate from the match classad. If the candidate ``lives'' in another data structure, this method should be called so that the match classad doesn't delete the candidate.
|
|
|
Replaces ad in the left context, or insert one if an ad did not previously exist.
|
|
|
Replaces ad in the right context, or insert one if an ad did not previously exist.
|