forceinfo.h

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

H
55
字号
//////////////////////////////////////////////////////////////////////
//  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
//
//////////////////////////////////////////////////////////////////////

// TrafficInfo.h: interface for the TrafficInfo class.
//
//     For storing the information perceived by sensor.
//
//////////////////////////////////////////////////////////////////////

#if !defined(ForceInfo_H_INCLUDED)
#define ForceInfo_H_INCLUDED

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

#include "Point.h"

class ForceInfo {
public:
	ForceInfo();
	virtual ~ForceInfo();

  // Get the resultant force value = |repulsion| + Attraction's projection onto the radial repulsion
  double getResultant();
	// update the repulsion force whenever the environment changes
	void setRepulsion(const Point &repForce);
  // reset the attraction force.
  void setAttraction(const Point &newAttForce);
  // add one more attraction force to traffic info.
  void addAttraction(const Point &attForce);

private:
	// The vector for radial replusion force
	Point repulsion;
	// The vector for attraction force from the blocked traffic units (stored in tu, since it is not relative to bs)
	Point attraction;
};

#endif // !defined(TrafficInfo_H_INCLUDED)

⌨️ 快捷键说明

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