|
CrowdSenSim
1.1
|
#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.
Classes | |
| struct | User |
| struct | UserStat |
Typedefs | |
| typedef std::map< int, User > | Users |
| typedef std::map< int, UserStat > | UsersStat |
Functions | |
| Users | allocateUsers (int num_users, StreetPoint stpM, StreetPoint::iterator it_stpM) |
| Users | allocateUsersSlotMobility (int num_users_tot, StreetPoint stpM, StreetPoint::iterator it_stpM) |
| 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
It 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
It 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. If it chosen this kind of users allocation, the simulation starts at 21 and finish at 7.
1.8.11