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

📄 almah_tree_analyzer.h

📁 为NS2仿真中的一个overlay多播协议的协议模块
💻 H
字号:
/***************************************************************************                          overlay.h  -  description                             -------------------    begin                : mar mar 16 2004    copyright            : (C) 2004 by    email                : ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef ALMAH_TREE_ANALIZER_H#define ALMAH_TREE_ANALIZER_H#include "almah.h"  #include "agent.h"#include "tclcl.h"#include "packet.h"#include "address.h"#include "ip.h"#include "obamp/obamp/obamp_rtable.h"#include "basetrace.h"#include "obamp/utility/prim.h"class ALMAH_Tree_Analyzer;class ALMAH_Tree_AnalyzerTimer : public Handler {public:        ALMAH_Tree_AnalyzerTimer(ALMAH_Tree_Analyzer* a) : agent(a) {}        void	handle(Event*);        private:        ALMAH_Tree_Analyzer    *agent;	      Event	intr;        };class ALMAH_Tree_Analyzer : public TclObject {    /*   * make some friends first   */                friend class ALMAH_Tree_AnalyzerTimer;                public:   ALMAH_Tree_Analyzer();  ~ALMAH_Tree_Analyzer();   int command(int argc, const char*const* argv);   void start();   int Tree_Cost();   int TreeOptimalCost();   int SampledTreeOptimalCost();   void Print_Report();   int Count_Tree_Links();   FILE* fout_;   FILE* fout_tree;   double efficiency;				   double efficiency_samples;			   double mean_ideal_cost;			   double mean_ALMAH_cost;			   bool efficiency_on;	   double interval;  protected:  ALMAH_Agent* Agents[50];  ALMAH_Tree_AnalyzerTimer ttimer;  int M_cast;  int Simulation_number;//number of simulation to set the output file  lista* sot_; // sampled optimal tree  double last_sampled_tree_instant; };#endif

⌨️ 快捷键说明

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