My Project
Loading...
Searching...
No Matches
RoadDetails Struct Reference

#include <RoadDetails.h>

Collaboration diagram for RoadDetails:
Collaboration graph

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

Detailed Description

Definition at line 9 of file RoadDetails.h.

Constructor & Destructor Documentation

◆ RoadDetails()

RoadDetails::RoadDetails ( float ab,
float bc,
float c,
float aplha = 0.5,
float beta = 4,
int discharge = 5 )
inline

Definition at line 29 of file RoadDetails.h.

Here is the caller graph for this function:

Member Function Documentation

◆ bestTime()

float RoadDetails::bestTime ( )
inline

Definition at line 66 of file RoadDetails.h.

Here is the caller graph for this function:

◆ calculateWeight()

float RoadDetails::calculateWeight ( ) const
inline

Definition at line 23 of file RoadDetails.h.

Here is the caller graph for this function:

◆ change_to_red()

void RoadDetails::change_to_red ( )
inline

Definition at line 127 of file RoadDetails.h.

Here is the caller graph for this function:

◆ changeState()

void RoadDetails::changeState ( )
inline

Definition at line 119 of file RoadDetails.h.

Here is the caller graph for this function:

◆ choosing()

float RoadDetails::choosing ( )
inline

Definition at line 130 of file RoadDetails.h.

Here is the call graph for this function:

◆ Congestion()

float RoadDetails::Congestion ( ) const
inline

Definition at line 110 of file RoadDetails.h.

Here is the caller graph for this function:

◆ decVehicles()

void RoadDetails::decVehicles ( )
inline

Definition at line 104 of file RoadDetails.h.

◆ DischargeAllowed()

float RoadDetails::DischargeAllowed ( int capacity_ofnext_road,
int pop_of_next_road )
inline

Definition at line 39 of file RoadDetails.h.

Here is the caller graph for this function:

◆ increment()

void RoadDetails::increment ( int time)
inline

Definition at line 128 of file RoadDetails.h.

◆ NonIdealtime()

float RoadDetails::NonIdealtime ( )
inline

Definition at line 68 of file RoadDetails.h.

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

Definition at line 19 of file RoadDetails.h.

Here is the call graph for this function:

◆ Time()

void RoadDetails::Time ( int time)
inline

Definition at line 117 of file RoadDetails.h.

◆ TimeCal()

float RoadDetails::TimeCal ( )
inline

Definition at line 57 of file RoadDetails.h.

Here is the call graph for this function:

◆ updateVehicles()

void RoadDetails::updateVehicles ( )
inline

Definition at line 90 of file RoadDetails.h.

◆ vehicleEntersRoad()

void RoadDetails::vehicleEntersRoad ( )
inline

Definition at line 77 of file RoadDetails.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vehicleExitsQueue()

void RoadDetails::vehicleExitsQueue ( )
inline

Definition at line 99 of file RoadDetails.h.

Here is the caller graph for this function:

◆ vehicleExitsRoad()

void RoadDetails::vehicleExitsRoad ( )
inline

Definition at line 83 of file RoadDetails.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vehicleJoinsQueue()

void RoadDetails::vehicleJoinsQueue ( )
inline

Definition at line 95 of file RoadDetails.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ a

float RoadDetails::a

Definition at line 15 of file RoadDetails.h.

◆ b

float RoadDetails::b

Definition at line 15 of file RoadDetails.h.

◆ capacity

float RoadDetails::capacity

Definition at line 10 of file RoadDetails.h.

◆ currentVehicles

int RoadDetails::currentVehicles

Definition at line 11 of file RoadDetails.h.

◆ dischargeCapcity

int RoadDetails::dischargeCapcity

Definition at line 18 of file RoadDetails.h.

◆ length

float RoadDetails::length

Definition at line 10 of file RoadDetails.h.

◆ light

TrafficSignal RoadDetails::light

Definition at line 16 of file RoadDetails.h.

◆ max_speed

float RoadDetails::max_speed

Definition at line 10 of file RoadDetails.h.

◆ NonIdealWeight

float RoadDetails::NonIdealWeight

Definition at line 14 of file RoadDetails.h.

◆ queueCount

int RoadDetails::queueCount

Definition at line 12 of file RoadDetails.h.

◆ signalState

bool RoadDetails::signalState

Definition at line 13 of file RoadDetails.h.


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