Definition at line 149 of file network.h.
typedef Id<TrunkGroup> OSB_LIB::TrunkGroup::Oid |
Link type of the trunk group.
LinkType defines as to what kind of entity the trunk group is linked.
OSB_LIB::TrunkGroup::TrunkGroup | ( | ) |
Default constructor.
OSB_LIB::TrunkGroup::TrunkGroup | ( | const Oid & | oid, | |
const Id2< NetworkElement > & | elementId | |||
) |
Constructor with object id and network element id.
OSB_LIB::TrunkGroup::TrunkGroup | ( | const TrunkGroup & | rhs | ) |
Copy constructor: clones the number analyser.
OSB_LIB::TrunkGroup::~TrunkGroup | ( | ) |
Destructor will delete the number analyzer assigned.
void OSB_LIB::TrunkGroup::checkExternal | ( | ) | [private] |
Check the external network and element.
Check that the external network and element are not the same network and element this trunk group belongs to.
OsbException |
|
void OSB_LIB::TrunkGroup::delNumAnalyzer | ( | ) |
Remove the number analyzer attached to this trunk group.
Direction OSB_LIB::TrunkGroup::direction | ( | ) | const |
Direction of the trunk group.
static Direction OSB_LIB::TrunkGroup::direction | ( | char | c | ) | [static] |
Convert a char to direction.
c | Value to convert. |
const Id2<NetworkElement>& OSB_LIB::TrunkGroup::extNetworkElementId | ( | ) | const |
Id of the external network.
This member is meaningful only if the LinkType is lkExternal, else it is not set. In the meaningful case network id of it is mandatory, element id is optional(may zero).
ToDo: better descripiton.
bool OSB_LIB::TrunkGroup::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Insert a trunk group.
Add a trunk group entry to the database. The object id and object version of trunk group will be set if the insertion is successful.
session | Database session to use. |
OsbException |
|
LinkType OSB_LIB::TrunkGroup::linkType | ( | ) | const |
LinkType of the trunk group.
static LinkType OSB_LIB::TrunkGroup::linkType | ( | char | c | ) | [static] |
Convert a char to link type.
c | Value to convert. |
const std::string& OSB_LIB::TrunkGroup::name | ( | ) | const |
Name of the trunk group.
This is the name of the trunk group as configured in the network element and written to the generated usage records.
const Id2<NetworkElement>& OSB_LIB::TrunkGroup::networkElementId | ( | ) | const |
Id of the group's network element.
const NumberAnalyzer* OSB_LIB::TrunkGroup::numberAnalyzer | ( | ) | const |
Get the number analyzer assigned.
long OSB_LIB::TrunkGroup::objVs | ( | ) | const |
Object version of the trunk group.
const Oid& OSB_LIB::TrunkGroup::oid | ( | ) | const |
Object id.
TrunkGroup& OSB_LIB::TrunkGroup::operator= | ( | const TrunkGroup & | rhs | ) |
Assignment operator: clones the number analyser.
bool OSB_LIB::TrunkGroup::read | ( | const OSB_DB::Session & | session | ) |
Read a trunk group from the database.
The function reads and sets the data members of the class.
session | Database session to use. |
OsbException |
|
bool OSB_LIB::TrunkGroup::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Delete a trunk group.
Delete a trunk group entry from the database.
Object id will be unset.
session | Database session to use. |
OsbException |
|
void OSB_LIB::TrunkGroup::setDirection | ( | Direction | dir | ) |
Set direction of trunk group.
void OSB_LIB::TrunkGroup::setExtNetworkElementId | ( | const Id2< NetworkElement > & | eNetElementId | ) |
Set external network and element id(optional) of trunk group.
void OSB_LIB::TrunkGroup::setLinkType | ( | LinkType | lType | ) |
Set link type of trunk group.
void OSB_LIB::TrunkGroup::setName | ( | const std::string & | name | ) |
Set name of trunk group.
void OSB_LIB::TrunkGroup::setNumAnalyzer | ( | NumberAnalyzer * | numAnalyzer | ) |
Set the number analyzer applicable to this trunk group.
numAnalyzer | The number analyzer object to be assigned. |
static char OSB_LIB::TrunkGroup::toChar | ( | LinkType | lt | ) | [static] |
Convert a link type into a char.
lt | LinkType to convert. |
static char OSB_LIB::TrunkGroup::toChar | ( | Direction | dir | ) | [static] |
Convert a direction into a char.
dir | Direction to convert. |
bool OSB_LIB::TrunkGroup::update | ( | const OSB_DB::Session & | session | ) | [private] |
Update a trunk group to the database.
This function will also update the data member objVs.
session | Database session to use. |
OsbException |
|
friend class NetworkElement [friend] |
friend class OSB_DB::TrunkGroupGw [friend] |
Direction OSB_LIB::TrunkGroup::direction_ [private] |
LinkType OSB_LIB::TrunkGroup::linkType_ [private] |
std::string OSB_LIB::TrunkGroup::name_ [private] |
NumberAnalyzer* OSB_LIB::TrunkGroup::numAnalyzer_ [private] |
long OSB_LIB::TrunkGroup::objVs_ [private] |
Oid OSB_LIB::TrunkGroup::oid_ [private] |