OSB_LIB::RpEvalTrunk Class Reference

Inheritance diagram for OSB_LIB::RpEvalTrunk:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::RpEvalTrunk:

Collaboration graph
[legend]
List of all members.

Detailed Description

Rated party evaluator for trunk groups: base class.

Definition at line 62 of file rpevaltrkgrp.h.

Public Types

Public Member Functions

Parameter handling:

Protected Member Functions

Private Member Functions

Private Attributes

Caching of the network element:

Member Enumeration Documentation

enum OSB_LIB::RpEvalTrunk::Param

Evaluator parameters:.

Enumerator:
paramAllowEmpty  Empty trunk as error: boolean.
paramNumParam  Number of parameters.

Definition at line 65 of file rpevaltrkgrp.h.


Constructor & Destructor Documentation

OSB_LIB::RpEvalTrunk::RpEvalTrunk ( const Oid oid,
const RpType rpType 
)

Constructor with object id and supported rated party type.


Member Function Documentation

const NetworkElement* OSB_LIB::RpEvalTrunk::getElement ( const OSB_LIB::Cdr cdr  )  const [protected]

Get the network element for a CDR.

Parameters:
cdr CDR to use.
Returns:
Pointer to the network element of cdr.
It is 0 if the id of the element is not set or
the element was not loaded by the NetworkManager.

std::string OSB_LIB::RpEvalTrunk::getParam ( int  index  )  const [private, virtual]

Get a configuration parameter of the evaluator.

Parameters:
index Index of the parameter to retrieve.
Returns:
An empty string for an unsupported index, else the value of mandatory(): "x" if set, "n" if not.

Implements OSB_LIB::RatedPartyEval.

bool OSB_LIB::RpEvalTrunk::mandatory (  )  const

Flag if an external trunk group is required.

If set, getParty() return an error if the trunk group is not external or empty; else noCdr is returned.

int OSB_LIB::RpEvalTrunk::numParam (  )  const [virtual]

Configuration of evaluator possible? Yes: 1.

Implements OSB_LIB::RatedPartyEval.

bool OSB_LIB::RpEvalTrunk::requiresCache (  )  const [virtual]

Resource cache needed?

Returns:
Always true.

Implements OSB_LIB::RatedPartyEval.

void OSB_LIB::RpEvalTrunk::setMandatory ( bool  mandat  ) 

Set flag if an external trunk group is required.

bool OSB_LIB::RpEvalTrunk::setParam ( int  index,
const std::string &  param 
) [private, virtual]

Set a parameter for the evaluator.

Parameters:
index Index of the parameter to set.
param Value of the parameter.
Returns:
true if index is paramAllowEmpty, else false.

Implements OSB_LIB::RatedPartyEval.


Member Data Documentation

bool OSB_LIB::RpEvalTrunk::mandatory_ [private]

Flag if an external trunk group is required.

See mandatory() for details.

Definition at line 148 of file rpevaltrkgrp.h.

Id2<NetworkElement> OSB_LIB::RpEvalTrunk::neId_ [mutable, private]

Id of network and element of the last Cdr.

Definition at line 153 of file rpevaltrkgrp.h.

const NetworkElement* OSB_LIB::RpEvalTrunk::pElement_ [mutable, private]

Pointer to the last used network element, it may be 0!

Definition at line 155 of file rpevaltrkgrp.h.


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