Loading [MathJax]/extensions/tex2jax.js
Dynamical system model
All Classes Namespaces Files Functions Pages
dsm::RoadJunction Class Reference
Inheritance diagram for dsm::RoadJunction:
dsm::Node dsm::Intersection dsm::Roundabout dsm::Station dsm::TrafficLight

Public Member Functions

 RoadJunction (Id id)
 
 RoadJunction (Id id, std::pair< double, double > coords)
 
 RoadJunction (RoadJunction const &other)
 
RoadJunctionoperator= (RoadJunction const &other)
 
virtual void setCapacity (Size capacity)
 Set the junction's capacity.
 
void setTransportCapacity (double capacity)
 Set the junction's transport capacity.
 
Size capacity () const
 Get the junction's capacity.
 
double transportCapacity () const
 Get the junction's transport capacity.
 
virtual double density () const
 
virtual bool isFull () const
 
virtual bool isIntersection () const noexcept
 
virtual bool isTrafficLight () const noexcept
 
virtual bool isRoundabout () const noexcept
 
- Public Member Functions inherited from dsm::Node
 Node (Id id)
 Construct a new Node object with capacity 1.
 
 Node (Id id, std::pair< double, double > coords)
 Construct a new Node object with capacity 1.
 
 Node (Node const &other)
 
Nodeoperator= (Node const &other)
 
void setId (Id id)
 Set the node's id.
 
void setCoords (std::pair< double, double > coords)
 Set the node's coordinates.
 
void setName (const std::string &name)
 Set the node's name.
 
Id id () const
 Get the node's id.
 
const std::optional< std::pair< double, double > > & coords () const
 Get the node's coordinates.
 
const std::string & name () const
 Get the node's name.
 
virtual bool isStation () const noexcept
 

Additional Inherited Members

- Protected Attributes inherited from dsm::Node
Id m_id
 
std::optional< std::pair< double, double > > m_coords
 
std::string m_name
 

Member Function Documentation

◆ capacity()

Size dsm::RoadJunction::capacity ( ) const

Get the junction's capacity.

Returns
Size The junction's capacity

◆ density()

virtual double dsm::RoadJunction::density ( ) const
virtual

◆ isFull()

virtual bool dsm::RoadJunction::isFull ( ) const
virtual

◆ isRoundabout()

virtual bool dsm::RoadJunction::isRoundabout ( ) const
virtualnoexcept

Reimplemented in dsm::Roundabout.

◆ setCapacity()

virtual void dsm::RoadJunction::setCapacity ( Size capacity)
virtual

Set the junction's capacity.

Parameters
capacityThe junction's capacity

Reimplemented in dsm::Intersection.

◆ setTransportCapacity()

void dsm::RoadJunction::setTransportCapacity ( double capacity)

Set the junction's transport capacity.

Parameters
capacityThe junction's transport capacity

◆ transportCapacity()

double dsm::RoadJunction::transportCapacity ( ) const

Get the junction's transport capacity.

Returns
Size The junction's transport capacity

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