📄 mas_df.h
字号:
//////////////////////////////////////////////////////////////////////
// Title: Geographic Load Balancing for Cellular Networks
// by emulating the behavior of air bubbles
//
// Description: This project is for dynamically balancing the traffic load
// over a cellular network with fully adaptive antennas by
// emulating the behaviours of a bubble array. Since
// we assume fully adaptive base station antenna in this
// version, antenna agent and simulator are not needed.
//
// Copyright: Copyright (c) 2003
// Company: Elec. Eng. Dept., Queen Mary, University of London
// @author Lin Du (lin.du@elec.qmul.ac.uk)
// @version 1.0
//
//////////////////////////////////////////////////////////////////////
// MAS_DF.h: interface for the MAS_DF class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(MAS_DF_H_INCLUDED)
#define MAS_DF_H_INCLUDED
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <cstdlib>
#include <ctime>
#include "Constants.h"
#include "TestBed.h"
#include "BaseStation.h"
#include "TrafficUnit.h"
#include "Parameter.h"
class TestBed;
class TrafficUnit;
class BSAgent;
class BaseStation;
typedef multimap<int, TrafficUnit *> P_TU_MAP_INT;
class MAS_DF {
public:
MAS_DF();
virtual ~MAS_DF();
// Return a global unique ID, used for message ID
U_INT32 getUniqueID();
// set the uniqueID, used for recovering from previous saved states
void setUniqueID(U_INT32 uniqueID);
// Return testbed
TestBed *getTestBed() const;
// find BS and TU by ID
BaseStation *findBS(int ID);
TrafficUnit *findTU(int ID);
// Parameters need to be tuned
CParameter parameter;
// friend class
friend class TestBed;
private:
TestBed *tb;
U_INT32 uniqueID;
P_TU_MAP_INT tuList; // for quick search
};
#endif // !defined(MAS_DF_H_INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -