CrowdSenSim  1.0
Data Structures | Typedefs | Functions
User.h File Reference
#include <fstream>
#include <iostream>
#include <string>
#include <cstdlib>
#include <sstream>
#include <vector>
#include <cmath>
#include <stdlib.h>
#include <map>
#include <list>
#include <algorithm>
#include <iomanip>
#include "Position.h"

Go to the source code of this file.

Data Structures

struct  User
 
struct  UserStat
 

Typedefs

typedef std::map< int, UserUsers
 
typedef std::map< int, UserStatUsersStat
 

Functions

Users allocateUsers (int num_users, StreetPoint stpM, StreetPoint::iterator it_stpM)
 
Users allocateUsersSlotMobility (int num_users_tot, StreetPoint stpM, StreetPoint::iterator it_stpM)
 

Typedef Documentation

typedef std::map<int,User> Users
typedef std::map<int,UserStat> UsersStat

Function Documentation

Users allocateUsers ( int  num_users,
StreetPoint  stpM,
StreetPoint::iterator  it_stpM 
)

It allocates the users in the map. More in details the user are allocated evenly in the timestamp set from User

Allocates users in the map. The first position is chosen casually

Users allocateUsersSlotMobility ( int  num_users_tot,
StreetPoint  stpM,
StreetPoint::iterator  it_stpM 
)

It allocates the users in the map. More in details the number of users allocated depends on the probability of presence for every time slot

Allocates users in different slots time, according to the presence probability. If it is higher there are many users in that slot. There are 10 slots and each one lasts 1 hour