forked from plrectco/GossipMembership
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Params.h
39 lines (34 loc) · 915 Bytes
/
Params.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
/**********************************
* FILE NAME: Params.h
*
* DESCRIPTION: Header file of Parameter class
**********************************/
#ifndef _PARAMS_H_
#define _PARAMS_H_
#include "stdincludes.h"
#include "Params.h"
#include "Member.h"
enum testTYPE { CREATE_TEST, READ_TEST, UPDATE_TEST, DELETE_TEST };
/**
* CLASS NAME: Params
*
* DESCRIPTION: Params class describing the test cases
*/
class Params{
public:
int MAX_NNB; // max number of neighbors
int SINGLE_FAILURE; // single/multi failure
double MSG_DROP_PROB; // message drop probability
double STEP_RATE; // dictates the rate of insertion
int EN_GPSZ; // actual number of peers
int MAX_MSG_SIZE;
int DROP_MSG;
int dropmsg;
int globaltime;
int allNodesJoined;
short PORTNUM;
Params();
void setparams(char *);
int getcurrtime();
};
#endif /* _PARAMS_H_ */