This rated party evaluator always generates a CDR and sets the tariff system in RatedParty to the configured value.
Definition at line 67 of file rpevalts.h.
Constructor with object id and supported rated party type.
std::string OSB_LIB::RpEvalFixedTs::getParam | ( | int | index | ) | const [private, virtual] |
Get a configuration parameter of the evaluator.
index | Index of the parameter to retrieve. |
Implements OSB_LIB::RatedPartyEval.
Result OSB_LIB::RpEvalFixedTs::getParty | ( | const Cdr & | cdr, | |
RatedParty * | rp, | |||
OsbError * | error | |||
) | const [virtual] |
Determine the rated party.
cdr | Not used. | |
rp | Rated party to populate, its RatedParty::tsVersion_ is set to tsId(). | |
error | Not used. |
Implements OSB_LIB::RatedPartyEval.
int OSB_LIB::RpEvalFixedTs::numParam | ( | ) | const [virtual] |
bool OSB_LIB::RpEvalFixedTs::requiresCache | ( | ) | const [virtual] |
bool OSB_LIB::RpEvalFixedTs::setParam | ( | int | index, | |
const std::string & | param | |||
) | [private, virtual] |
Set a parameter for the evaluator.
index | Index of the parameter to set. | |
param | Value of the parameter. |
OsbException | if the parameter is not valid. |
Implements OSB_LIB::RatedPartyEval.
void OSB_LIB::RpEvalFixedTs::setTsId | ( | const Id< TariffSystem > & | tsId | ) |
Set the tariff system id.
Id<TariffSystem> OSB_LIB::RpEvalFixedTs::tsId | ( | ) | const |
Get the id of the configured tariff system.
Type OSB_LIB::RpEvalFixedTs::type | ( | ) | const [virtual] |
Id<TariffSystem> OSB_LIB::RpEvalFixedTs::tsId_ [private] |
const Type OSB_LIB::RpEvalFixedTs::type_ [static, private] |
Definition at line 69 of file rpevalts.h.