PREV TOC HOME INDEX NEXT


5.2.16 ResourceManager Class

The ResourceManager class' main role is to initiate R4 and IPM resources. It manages the system resources and contains the following data:

The ResourceManager class attributes are described in Table 21. Refer to the source code for method information.

Table 21. ResourceManager Class Attributes 

Name

Access Privilege

Type

Description

m_PSTNBoards public DigitalPSTNBoard Array that includes the PSTN boards available in the system, filled while initializing the PSTN boards that had been previously found. Not changed until the demo termination. This array is read whenever the system wants to get a free PSTN device
m_IPBoards public IPMediaBoard* Array that includes the IP boards available in the system
m_pIPProtocolMgr public static IPProtocolMgr* Manages the IPProtocol instances. It allocates them, creates call IDs for them, initializes the transport module: client and server for send and receive messages over IP. This instance is created at the demo initialization and is accessed whenever the systems needs to allocate a new IPProtocol or call id object, or to map a call ID to an IPProtocol. There is one instance of this object in the system.
m_ptheConfiguration public static Configuration* An instance of the Configuration class used to determine the configuration of the system during initialization. This object is constructed before the initialization and is changed during the initialization while getting data from the configuration file and command line options. There is one instance of this object in the system because there is only one configuration file. This object is accessed during the initialization only, and after that all data related to the different objects is passed to them and the configuration object is destructed.
m_maxChannelsToOpen public int The maximum number of channels that the demo will work with (this number is the minimum of devices of each type and the user requested -n option). This integer is determined after detecting the system devices and getting the number of channels that the user wants and is not changed until the demo termination.
DeviceHandleToChannel public static unsigned int Maps the devices to channels through their handles (gotten after opening each channel) to enable handling the SRL events. The table is filled in when opening each device.
IPPHandleToChannel public static unsigned int Maps IPProtocol handle (this handle is actually the IP call ID) to channel.
m_systemChannels public static Channel* Array that contains all the channels used by the application. This array is filled during the initialization, after the minimum number of channels is known. The array is accessed whenever the application wants to perform an action on a channel.
m_numOfPSTNBoards public int The number of PSTN boards in the system. This integer is updated after detecting the PSTN boards and does not change until demo termination.
m_numOfIPBoards public int The number of IP boards in the system. This integer is updated after detecting the IP boards and does not change until demo termination.
m_pLog public static Log* A log instance used during initialization. All the printouts are sent to the monitor, after which it is destructed. This instance is necessary because during the initialization, there are no channel instances and therefore no log instances. In order to see logs during initialization, the application creates a global log instance for all the devices during initialization and kills it after creating the channel objects and attributing the devices to channels.


PREV TOC HOME INDEX NEXT

Click here to contact Telecom Support Resources

Copyright 2002, Intel Corporation
All rights reserved
This page generated September, 2002