aggegress-est.h.h

来自「在网络的边缘路由器中并不能完全接受所到的包」· C头文件 代码 · 共 45 行

H
45
字号
#include <stdlib.h>
#include <math.h>
#include "estimator.h"
#include "trace.h"
#include "measure.h"
#include <malloc.h>
#include <stdio.h>

class AggEgress_Est : public Estimator {
public:
        static double arrivalenvelope[17][2];
        static double serviceenvelope[17][2];
        static double tempmeandelay;
        static double tempmaxdelay;
        static int outsideboundcount;
        static int tempcount;
	AggEgress_Est();
        void initializemaxminlist(void);
        void createmaxmintimelist(double [][2]);
        void printmaxmintimelist(void);
        void computemeanmaxdelay(void);
        void extractarrivalservicetimesintoarray();
        void computationofminarrivalmaxservicetimes();
        void generatearrivalenvelope();
        void generateserviceenvelope();


private:
        /* period_ is length of basic measurement interval */
	double T_;  /* length of T interval */
	int M_;  /* number of T intervals of history */
        double lifetimeofflow_;
        double simulationtime_;
        double delayrequest_;
        Measure *temp;
        double arrayoftimes[NUMOFPACKS][2]; 
        double maxmintimes[17][2];
        double temparrivaltime;
        double tempservicetime;
        void estimate();
	void start();
};


⌨️ 快捷键说明

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