CrowdSenSim  1.0
Smartphones.h
Go to the documentation of this file.
1 /*
2  * Smartphones.h
3 
4  *
5  * Created on: 30 giu 2016
6  * Author: Giuseppe Cacciatore
7  */
8 
9 #ifndef SMARTPHONES_H_
10 #define SMARTPHONES_H_
11 
12 #include "Sample.h"
13 
17 typedef std::map<string, float> DatatbdelM;
18 
22 typedef std::map<string, float> DatasentM;
23 
24 using namespace std;
25 
26 struct Smartphone{
27 
28  int id_user;
29  float battery;
30  string context;
35  Smartphone(int A, float B, string (C), DatatbdelM (D), DatasentM (E), Samples(F)): id_user(A), battery(B), context(C), dtbd(D), dts(E), smp(F) {}
36 };
37 
38 typedef std::map<int,Smartphone> Smartphones;
39 
43 Smartphones setSmartphones(int num_users);
44 
45 #endif /* SMARTPHONES_H_ */
Smartphone(int A, float B, string(C), DatatbdelM(D), DatasentM(E), Samples(F))
Definition: Smartphones.h:35
int id_user
Definition: Smartphones.h:28
std::map< string, float > DatasentM
Definition: Smartphones.h:22
std::map< string, float > DatatbdelM
Definition: Smartphones.h:17
string context
Definition: Smartphones.h:30
std::list< Sample > Samples
Definition: Sample.h:40
Samples smp
Definition: Smartphones.h:33
int num_users
Definition: CrowdSenSim.cpp:44
std::map< int, Smartphone > Smartphones
Definition: Smartphones.h:38
DatatbdelM dtbd
Definition: Smartphones.h:31
DatasentM dts
Definition: Smartphones.h:32
Smartphones setSmartphones(int num_users)
Definition: Smartphones.cc:13
float battery
Definition: Smartphones.h:29
Definition: Smartphones.h:26