OSB_LIB::MatchingTree Class Reference

Collaboration diagram for OSB_LIB::MatchingTree:

Collaboration graph
[legend]
List of all members.

Detailed Description

A tree structure that is used to match a used service tuple to a system recognised service tuple.

This object will be constructed based on per SCS version basis. Thus every SCS version object will have a matching tree object ready for matching the incoming used services. This object will only be used in the ScsVersion::match() function.

Definition at line 176 of file serviceclass.h.

Public Member Functions

Private Types

Private Member Functions

Private Attributes

Classes


Member Typedef Documentation

typedef std::list<Leaf> OSB_LIB::MatchingTree::Leaves [private]

STL container for leaves.

Definition at line 179 of file serviceclass.h.


Member Function Documentation

void OSB_LIB::MatchingTree::addService ( Leaves leaves,
ServiceElements  ses,
const RatedService::Oid rsId 
) [private]

Recursivly add a rated service to the tree.

Parameters:
leaves List on which to add ses.
ses Copy of the service elements to add.
rsId The rated service valid for the last element in ses.

void OSB_LIB::MatchingTree::addService ( const RatedService rs  ) 

Add a rated service to the tree.

Parameters:
rs Rated service to add.
Remarks:
The function has of effect if the service tuple of rs is empty.

const RatedService::Oid OSB_LIB::MatchingTree::match ( const Leaves leaves,
ServiceElements  ses 
) const [private]

Recursivly determine the rated service from service elements.

Parameters:
leaves List of service elements that are matched against the frist element in ses.
ses Copy of the service elements to match.
Returns:
The object id of the rated service that matches ses.
It is not set if no match can be determined.

const RatedService::Oid OSB_LIB::MatchingTree::match ( const ServiceTuple st  )  const

Determine the rated service for a service tuple.

Parameters:
st The service tuple to be matched.
Returns:
The object id of the rated service that matches st.
It is not set if no match can be determined.

void OSB_LIB::MatchingTree::populate ( const ScsVersion scsVs  ) 

populate the Matching tree.

Parameters:
scsVs The SCS version for which to build up the matching tree.

void OSB_LIB::MatchingTree::swap ( MatchingTree rhs  ) 

Swap the content of two matching tree.

Parameters:
rhs Matching tree that is to be swap.


Member Data Documentation

Leaves OSB_LIB::MatchingTree::leaves_ [private]

List of primary service elements.

Definition at line 253 of file serviceclass.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:16:23 2006 for OSB Library by  doxygen 1.4.7