39using namespace Geometry;
53 vector<creator*> ccss;
56 int n_external_vehs = 0;
58 vector<list<road_object*>*> porpistas;
62 bool initialized =
false;
83 void append_vehicles(vector<vehicle*> vehicles,
int lane);
104 int get_current(vector<list<road_object*>::iterator>, vector<list<road_object*>::iterator>);
112 void initial_state();
122 void overwrite_constructors(vector<creator*> creators);
Represents the geometry of a highway segment in the simulation.
Definition geometry.h:25
Base class for generating vehicles in a traffic simulation.
Definition creator.h:33
Class representing a fixed object on the road.
Definition vehicle.h:209
Abstract class for lane-changing models.
Definition model.h:129
The results class manages and processes simulation results.
Definition results.h:25
Abstract base class representing any object on the road.
Definition vehicle.h:29
The simulation class manages a traffic simulation over time.
Definition simulation.h:48
simulation(lcm *d, double T, geometry *g, creator *c, double _dt)
Constructs a simulation with a common creator for all lanes.
results * run()
Runs the simulation.
simulation(lcm *d, double T, geometry *g, vector< creator * > creators, vehicle *veh, double dt)
Constructs a simulation with specific creators for each lane.
simulation(lcm *d, double T, geometry *g, vector< creator * > creators, vector< vehicle * > vehs, double dt)
Constructs a simulation with specific creators and vehicles.
~simulation()
Destructor for the simulation.
Class representing a moving vehicle on the road.
Definition vehicle.h:67
File for the clock class definition (short description).
Defines the creator class for generating vehicles in traffic simulations.
Defines the fixed_demand_creator class for generating vehicles at a fixed rate.
Defines the geometry class for managing highway segment properties.
Header file containing miscellaneous utility functions and classes.
File for the model and lcm classes definitions (short description).
File for the params and params_cust classes definitions (short description).
File for the point class definition.
Provides utilities for generating random numbers using various probability distributions.
Defines the results and Box classes for managing simulation results.
Contains definitions for the generalized_trajectory, static_trajectory, and trajectory classes.
Defines the road_object, vehicle, and fixed_object classes used to represent objects on the road.