-
Notifications
You must be signed in to change notification settings - Fork 0
/
basic.h
51 lines (46 loc) · 1.16 KB
/
basic.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//basic.h
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
#include <math.h>
#include "utils.h"
#include "rvgs.h"
#include "rngs.h"
// ########## settings ################
#define SAMPLETIME 20
#define ARRIVALMEAN1 0.15384615384615
#define ARRIVALMEAN2 0.16
#define SERVICEMEANCLET1 2.22222222222222
#define SERVICEMEANCLET2 3.7037037037037
#define SERVICEMEANC1 4.0
#define SERVICEMEANC2 4.54545454545455
#define MIGRATIONDELAY 0.8
#define SIMULATIONLENGTH 86400.00
#define SEED 123456789
#define ARRIVALSTREAM1 0
#define ARRIVALSTREAM2 2
#define LEAVESTREAMCLET1 55
#define LEAVESTREAMCLET2 57
#define LEAVESTREAMC1 50
#define LEAVESTREAMC2 53
#define MIGRATIONDELAYSTREAM 58
#define ITERATION 1
#define PRINTALL 1
#define FINALVALUEFILES 1
#define STARTTOPRINT 0.00
#define STARTTOCOUNT 86400.00
#define PRINTINTERs 1 //print throughput, interarrival and interdeparture
#define CAPACITY 20
#define THRESHOLD 20
#define VERBOSELIST 0
#define LISTTYPE double
#define LISTTYPE2 char
#define LISTTYPE3 double
#define LISTTYPE4 double