?? csector.h
字號:
//CSector.h
//The head file of CSector class
///////////////////////////////////////////////////////////////////
#if !defined(CSECTOR_H_INCLUDED)
#define CSECTOR_H_INCLUDED
#include "systemsim.h"
#include "CCell.h"
class CDataMs;
class CSector
{
//attribute
private:
int m_iSectorIndex; //扇區標號
CELLID_TYPE m_stParentCellID; //父小區標號
CCell* m_pParentCell; //父小區指針
int m_iSectorOrientation; // 扇區朝向 取值范圍0-359
float m_fMaxPower; //最大發射功率
float m_fTxPower; //實際發射功率
//wgt
float m_fTxPower1;
float m_fPilotPower; //導頻功率
float m_fCommonPower; //公共信道功率
float m_fMaxPacketPower; //分組數據信道的最大功率
float m_fTotalVoicePower; //實際的話音業務總功率
// float m_fTotalVoicePower1;
float m_fPacketPower; //實際的分組數據信道功率
bool m_bIsTransmiting; //當前時隙是否正在傳送分組
//若本時隙由數據傳輸則置為真,否則置為假
CDataMs* m_pCurrentDataMs; //當前分組數據用戶的指針
float m_fPriorityFactor; //當前的最佳用戶的優先級指標
//用來記錄本扇區對應的最佳分組用戶的優先級,
//供調度算法函數循環處理時使用。
////////////////////////////// oyh新增變量,統計用 //////////////////////////////////
int m_iTotalDataMsNum; //本扇區總的分組用戶數
long m_lGoodBitNum; //本扇區中到目前為止成功傳輸的bit數
//////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////// zdy新增變量,統計用 ////////////////////////////////
float m_fTotalPacketDelay; //本扇區所傳分組的總的時延
int m_iTotalSuccessfulPacketNum; //本扇區成功傳輸的分組數目
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////// wyf新增變量,調度算法用 ////////////////////////////////
bool m_bIsExistHighestPriority; //本扇區是否有最高優先權分組用戶存在
///////////////////////////////////////////////////////////////////////////////////////////
public:
int m_iNumOfSector;
//operation
public:
void Initialization(int, CELLID_TYPE, CCell*, int); //初始化函數
void ResetPower(); //功率復位函數
void VoicePowerCumulate(float); //話音功率的累加函數
void PacketPowerCalculte(); //分組數據信道的功率計算函數
void TxPowerCalculte(); //實際發射功率計算函數,應oyh要求新增
int GetSectorIndex(); //返回扇區標號
CELLID_TYPE GetParentCellID(); //返回父小區標號
CCell* GetParentCell(); //返回父小區指針
//設置值在范圍內返TRUE,否則返FALSE
int GetSectorOrientation(); //返回扇區朝向 取值范圍0-359
void SetMaxPower(float); //設置最大發射功率
float GetMaxPower(); //返回最大發射功率
void SetTxPower(float); //設置實際發射功率
float GetTxPower(); //返回實際發射功率
//wgt
void SetTxPower1(float);
float GetTxPower1();
float GetPilotPower(); //返回導頻功率
float GetCommonPower(); //返回公共信道功率
void SetMaxPacketPower(float); //設置分組數據信道的最大功率
float GetTotalVoicePower(); //返回實際的話音業務總功率
void SetPacketPower(float); //設置實際的分組數據信道功率
float GetPacketPower(); //返回實際的分組數據信道功率
void SetIsTransmiting(bool); //設置當前時隙是否正在傳送分組
bool IsTransmiting(); //返回當前時隙是否正在傳送分組
void SetCurrentDataMs(CDataMs*); //設置當前分組數據用戶的指針
CDataMs* GetCurrentDataMs(); //返回當前分組數據用戶的指針
void SetPriorityFactor(float); //設置當前的最佳用戶的優先級指標
float GetPriorityFactor(); //返回當前的最佳用戶的優先級指標
///////////////////////////////// wyf新增成員變量接口函數 ////////////////////////////
void SetIsExistHighestPriority(bool); //設置是否存在最高優先權分組用戶
bool IsExistHighestPriority(); //返回是否存在最高優先權分組用戶
///////////////////////////////// oyh新增成員變量的接口函數 ////////////////////////////
void SetGoodBitNum(long); //設置本扇區到目前為止成功傳輸bit數
long GetGoodBitNum(); //返回本扇區到目前為止成功傳輸bit數
/////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// zdy新增成員變量的接口函數 ////////////////////////////
void SetTotalPacketDelay(float); //設置本扇區所傳分組的總的時延
float GetTotalPacketDelay(); //返回本扇區所傳分組的總的時延
void SetTotalSuccessfulPacketNum(int); //設置本扇區成功傳輸的分組數目
int GetTotalSuccessfulPacketNum(); //返回本扇區成功傳輸的分組數目
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -