Adaptive Traffic Simulator
Loading...
Searching...
No Matches
RoadDetails Struct Reference

#include <Header1.h>

Collaboration diagram for RoadDetails:

Public Member Functions

bool operator< (const RoadDetails &other) const
float calculateWeight () const
 RoadDetails (float ab, float bc, float c, float aplha=0.5, float beta=4, int discharge=5)
float DischargeAllowed (int capacity_ofnext_road, int pop_of_next_road)
float TimeCal ()
float bestTime ()
float NonIdealtime ()
void vehicleEntersRoad ()
void vehicleExitsRoad ()
void updateVehicles ()
void vehicleJoinsQueue ()
void vehicleExitsQueue ()
void decVehicles ()
float Congestion ()
void Time (int time)
void changeState ()
void change_to_red ()
void increment (int time)
float choosing ()

Public Attributes

float length
float max_speed
float capacity
int currentVehicles
int queueCount
bool signalState
float NonIdealWeight
float a
float b
TrafficSignal light
int dischargeCapcity

Constructor & Destructor Documentation

◆ RoadDetails()

RoadDetails::RoadDetails ( float ab,
float bc,
float c,
float aplha = 0.5,
float beta = 4,
int discharge = 5 )
inline
Here is the caller graph for this function:

Member Function Documentation

◆ bestTime()

float RoadDetails::bestTime ( )
inline
Here is the caller graph for this function:

◆ calculateWeight()

float RoadDetails::calculateWeight ( ) const
inline
Here is the caller graph for this function:

◆ change_to_red()

void RoadDetails::change_to_red ( )
inline
Here is the caller graph for this function:

◆ changeState()

void RoadDetails::changeState ( )
inline
Here is the caller graph for this function:

◆ choosing()

float RoadDetails::choosing ( )
inline
Here is the call graph for this function:

◆ Congestion()

float RoadDetails::Congestion ( )
inline
Here is the caller graph for this function:

◆ decVehicles()

void RoadDetails::decVehicles ( )
inline

◆ DischargeAllowed()

float RoadDetails::DischargeAllowed ( int capacity_ofnext_road,
int pop_of_next_road )
inline
Here is the caller graph for this function:

◆ increment()

void RoadDetails::increment ( int time)
inline

◆ NonIdealtime()

float RoadDetails::NonIdealtime ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<()

bool RoadDetails::operator< ( const RoadDetails & other) const
inline
Here is the call graph for this function:

◆ Time()

void RoadDetails::Time ( int time)
inline

◆ TimeCal()

float RoadDetails::TimeCal ( )
inline
Here is the call graph for this function:

◆ updateVehicles()

void RoadDetails::updateVehicles ( )
inline

◆ vehicleEntersRoad()

void RoadDetails::vehicleEntersRoad ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vehicleExitsQueue()

void RoadDetails::vehicleExitsQueue ( )
inline
Here is the caller graph for this function:

◆ vehicleExitsRoad()

void RoadDetails::vehicleExitsRoad ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vehicleJoinsQueue()

void RoadDetails::vehicleJoinsQueue ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ a

float RoadDetails::a

◆ b

float RoadDetails::b

◆ capacity

float RoadDetails::capacity

◆ currentVehicles

int RoadDetails::currentVehicles

◆ dischargeCapcity

int RoadDetails::dischargeCapcity

◆ length

float RoadDetails::length

◆ light

TrafficSignal RoadDetails::light

◆ max_speed

float RoadDetails::max_speed

◆ NonIdealWeight

float RoadDetails::NonIdealWeight

◆ queueCount

int RoadDetails::queueCount

◆ signalState

bool RoadDetails::signalState

The documentation for this struct was generated from the following file: