📄 localoptimizer.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
//
//////////////////////////////////////////////////////////////////////
// LocalOptimizer.h: interface for the LocalOptimizer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(LocalOptimizer_H_INCLUDED)
#define LocalOptimizer_H_INCLUDED
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Disable the warning message 4786
#pragma warning(disable:4786)
#include <map>
#include <vector>
#include <numeric>
using namespace std;
#include "ForceInfo.h"
#include "TrafficUnit.h"
#include "BSAgent.h"
class BSAgent;
class TrafficUnit;
typedef pair<ForceInfo, TrafficUnit *> FI_P_TU;
typedef vector< FI_P_TU > PAIR_V;
typedef vector<TrafficUnit *> P_TU_V;
typedef multimap<double, TrafficUnit *> P_TU_MAP;
class LocalOptimizer {
public:
LocalOptimizer();
LocalOptimizer(BSAgent *agent);
virtual ~LocalOptimizer();
// Propose the best possible LAS for this BS and save it to bestLAS, try to balance the loads within 7 cells
// This will be immediately committed if the load has not exceed the UR_TARGET
void oscBubble(); // decide initBubble or oscBubble by agent->oscNum
private:
BSAgent *agent;
// The load traget used when proposing the bestLAS
double load_target;
PAIR_V utilTU;
P_TU_MAP sortedTU;
};
#endif // !defined(LocalOptimizer_H_INCLUDED)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -