|
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 <time.h>#include "../Headers/Utilities.h"#include "../Headers/ClockManagement.h"Go to the source code of this file.
Classes | |
| struct | Event |
Typedefs | |
| typedef std::list< Event > | Events |
| typedef std::map< int, list< int > > | GraphCityMap |
Functions | |
| bool | eventComparator (const Event &lhs, const Event &rhs) |
| Events | creatingListOfEvents (int num_users, Users usersM, Users::iterator it_usersM, StreetPoint stpM, StreetPoint::iterator it_stpM, GraphCityMap grcM, GraphCityMap::iterator it_grcM, string typeOfAntennas, int days) |
| Events | creatingListOfEventsSlots (int num_users, Users usersM, Users::iterator it_usersM, StreetPoint stpM, StreetPoint::iterator it_stpM, GraphCityMap grcM, GraphCityMap::iterator it_grcM, string typeOfAntennas) |
| Events | readListOfEvents () |
| typedef std::map<int, list<int> > GraphCityMap |
| Events creatingListOfEvents | ( | int | num_users, |
| Users | usersM, | ||
| Users::iterator | it_usersM, | ||
| StreetPoint | stpM, | ||
| StreetPoint::iterator | it_stpM, | ||
| GraphCityMap | grcM, | ||
| GraphCityMap::iterator | it_grcM, | ||
| string | typeOfAntennas, | ||
| int | days | ||
| ) |
It creates lists of events, ordered by UserID and time
It creates a list of events evenly in the time. It generates the file of events
| Events creatingListOfEventsSlots | ( | int | num_users, |
| Users | usersM, | ||
| Users::iterator | it_usersM, | ||
| StreetPoint | stpM, | ||
| StreetPoint::iterator | it_stpM, | ||
| GraphCityMap | grcM, | ||
| GraphCityMap::iterator | it_grcM, | ||
| string | typeOfAntennas | ||
| ) |
It creates lists of events, ordered by UserID and time slots
It compares two Events Inputs: Events lhs and Events rhs Output: boolean value of the comparison
It makes a time comparison between events, and return a boolean value
| Events readListOfEvents | ( | ) |
It reads lists of events
1.8.11