CrowdSenSim  1.0
Functions
User.cc File Reference
#include "../Headers/User.h"
#include "../Headers/ReadValues.h"
#include "../Headers/Utilities.h"

Functions

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

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