27 vector<trajectory*>* all_t;
28 map<int, vector<trajectory*>*>* lanes;
61 vector<vector<double>*>* get_box_edges(
double ta,
double tb,
double dt);
118 vector<vector<double>*>*
edie(
double ta,
double tb,
double dt,
double xa,
double xb,
int l);
164 Box(
double xa,
double xb,
double ta,
double tb);
The Box class defines a time-space region for measuring Edie's flow and density.
Definition results.h:145
Box(double xa, double xb, double ta, double tb)
Constructor that defines a time-space box for measuring flow and density.
point * inter_ver(point *p1, point *p2, double t)
Calculates the intersection with a vertical line at a given t value.
vector< double > * get_edie()
Computes Edie's flow and density values for the box.
vector< vector< point * > * > * trails
Stores the start and end points of trajectories crossing the box.
Definition results.h:154
void print()
Prints the trails (vehicle paths) that pass through the box.
point * inter_hor(point *p1, point *p2, double x)
Calculates the intersection with a horizontal line at a given x value.
bool contains(point *p)
Checks whether a point lies within the box.
point * get_intersection(point *p1, point *p2)
Computes the intersection of two points with the edges of the box.
Represents a point in time for a vehicle in a traffic simulation.
Definition point.h:23
The results class manages and processes simulation results.
Definition results.h:25
vector< trajectory * > * by_lane(int l)
Retrieves all trajectories in a specific lane.
results(vector< trajectory * > *r)
Constructor that initializes the results object with a list of trajectories.
vector< vector< double > * > * edie(double ta, double tb, double dt, double xa, double xb, int l)
Computes Edie's flow and density for a specific time interval and distance.
vector< point * > * passes_on_x(double x, int l)
Retrieves the list of points where vehicles pass at a specific distance in a given lane.
vector< trajectory * > * all_lanes()
Retrieves all trajectories across all lanes.
vector< trajectory * > * porpista(int c)
Splits a vehicle's trajectory by lane.
vector< trajectory * > * get_all_t()
Gets all vehicle trajectories.
vector< point * > * passes_on_t(double t, int l)
Retrieves the list of points where vehicles pass at a specific time in a given lane.
Represents a dynamic trajectory of a moving object.
Definition trajectory.h:59
Contains definitions for the generalized_trajectory, static_trajectory, and trajectory classes.