CrowdSenSim  1.1
Functions | Variables
Event.cc File Reference
#include "../Headers/Event.h"
#include <iostream>
#include <string>
#include <fstream>
#include "../Headers/Antenna.h"
#include "../Headers/ClockManagement.h"
#include "../Headers/ReadValues.h"

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 readListOfEvents ()
 
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)
 

Variables

Events eventsLFunc
 
Events::iterator it_eventsLFunc
 

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

Variable Documentation

Events eventsLFunc
Events::iterator it_eventsLFunc