CrowdSenSim
1.0
|
#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.
Data Structures | |
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 | ||
) |
Creates lists of events, ordered by UserID and time
Creates a list of events evenly in the time
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 | ||
) |
Creates lists of events, ordered by UserID and time slots
Creates list of events according to the timestamp used. In this case there are 10 time slots of time of an hour. The sequence starts at 21 pm to 7 am
It compares two Events Inputs: Events lhs and Events rhs Output: boolean value of the comparison
Makes a comparison between events, and return a boolean value
Events readListOfEvents | ( | ) |
Reads lists of events