evaluator.h

来自「Bubble Oscillation Algorithm. It is used」· C头文件 代码 · 共 66 行

H
66
字号
//////////////////////////////////////////////////////////////////////
//  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 + =
减小字号Ctrl + -
显示快捷键?