mas_df.h

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

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