⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evaluator.h

📁 Bubble Oscillation Algorithm. It is used to implement balancing load traffic, which is similar to wh
💻 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
//
//////////////////////////////////////////////////////////////////////

// Evaluator.h: interface for the Evaluator class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(Evaluator_H_INCLUDED)
#define Evaluator_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// Disable the warning message
#pragma warning(disable:4786)

#include <vector>

using namespace std;

#include "Constants.h"
#include "BSAgent.h"
#include "TrafficUnit.h"
#include "Point.h"

class BSAgent;
class Point;
class TrafficUnit;

class Evaluator {
public:
	Evaluator();
	Evaluator(BSAgent *agent);
	virtual ~Evaluator();

	// Calculate the repelling force from BS to TU.
	Point getRepulsionForce(const TrafficUnit &tu) const;

	// Calculate the attracting force from Blocked TU(vacuum) to servedTU.
	Point getAttractionForce(const TrafficUnit &targetTU, const TrafficUnit &vacuumTU) const;

private:
  BSAgent *agent;
  double W0;    // cache for tunable parameters
  double W1;    // cache for tunable parameters
  double W2;    // cache for tunable parameters
  double W3;    // cache for tunable parameters
};

#endif // !defined(Evaluator_H_INCLUDED)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -