aggcbqegress-est.h.h

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

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

class AggCbqEgress_Est : public Estimator {
public:
        static double arrivalenvelope0[17][2];
        static double serviceenvelope0[17][2];
        static double arrivalenvelope1[17][2];
        static double serviceenvelope1[17][2];
	AggCbqEgress_Est();
        void initializemaxminlist0(void);
        void initializemaxminlist1(void);
        void createmaxmintimelist0(double [][2]);
        void createmaxmintimelist1(double [][2]);
        void printmaxmintimelist0(void);
        void printmaxmintimelist1(void);
        void extractarrivalservicetimesintoarray();
        void computationofminarrivalmaxservicetimes0();
        void computationofminarrivalmaxservicetimes1();
        void generatearrivalenvelope0();
        void generatearrivalenvelope1();
        void generateserviceenvelope0();
        void generateserviceenvelope1();


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_;
        Measure *temp;
        double arrayoftimes0[NUMOFPACKS][2]; 
        double arrayoftimes1[NUMOFPACKS][2];
        double maxmintimes0[17][2];
        double maxmintimes1[17][2];
        double temparrivaltime;
        double tempservicetime;
        void estimate();
	void start();
};


⌨️ 快捷键说明

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