-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsers.h
More file actions
77 lines (63 loc) · 2.15 KB
/
Users.h
File metadata and controls
77 lines (63 loc) · 2.15 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef USERS_H
#define USERS_H
#include "Point.h"
#include "Event.h"
#include <string>
#include <vector>
class Users
{
public:
Users();
void setUserId(std::string _userId);
std::string getUserId();
void setUserAsReporter(bool _isReporter);
void setUserAsRater(bool _isRater);
void setUserAsMalReporter(bool _isMalReporter);
void setUserAsSelfishReporter(bool _isSelfishReporter);
bool checkIfUserIsReporter();
bool checkIfUserIsRater();
bool checkIfUserIsMalReporter();
bool checkIfUserIsSelfishReporter();
void setUserLocation(Point _location);
Point getUserLocation();
std::vector<Event> getReportedEvents();
void addReportedEvent(Event event);
void updateReportedEvents(std::vector<Event>_reportedEvents);
std::vector<Event> getRatedEvents();
void addRatedEvent(Event event);
void addMultipleReportedEvents(std::vector<Event> _reportedEvents);
void addMultipleRatedEvents(std::vector<Event> _ratedEvents);
void setMostRecentEvent(Event event);
Event getMostRecentEvent();
double getScore();
double getRawScore();
void setScore(double score);
void setRawScore(double score);
double getDSScore();
void setDSScore(double score);
double getIncentives();
void setIncentives( double incentives);
void setNoOfTrueEventsReported(int noOfTrueEventsReported);
void setNoOfFalseEventsReported(int noOfFalseEventsReported);
int getNoOfTrueEventsReported ();
int getNoOfFalseEventsReported ();
int getNoOfEventsReported();
protected:
private:
std::string userId;
bool isReporter;
bool isRater;
bool isMalReporter;
bool isSelfishReporter;
Point location;
std::vector<Event> reportedEvents;
std::vector<Event> ratedEvents;
Event recentEvent;
double score;
double dsScore;
double rawScore;
int noOfTrueEventsReported;
int noOfFalseEventsReported;
double incentives;
};
#endif // USERS_H