CrowdSenSim  1.0
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 
)

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

bool eventComparator ( const Event lhs,
const Event rhs 
)

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

Variable Documentation

Events eventsLFunc
Events::iterator it_eventsLFunc