CrowdSenSim  1.1
Classes | Typedefs | Functions
Event.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 <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< EventEvents
 
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 Documentation

typedef std::list<Event> Events
typedef std::map<int, list<int> > GraphCityMap

Function Documentation

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

bool eventComparator ( const Event lhs,
const Event rhs 
)

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