Loading [MathJax]/jax/output/HTML-CSS/config.js
Dynamical system model
All Classes Namespaces Files Functions Pages
dsf::RoadJunction Class Reference
Inheritance diagram for dsf::RoadJunction:
dsf::Node dsf::Intersection dsf::Roundabout dsf::Station dsf::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 dsf::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 dsf::Node
Id m_id
 
std::optional< std::pair< double, double > > m_coords
 
std::string m_name
 

Member Function Documentation

◆ capacity()

Size dsf::RoadJunction::capacity ( ) const

Get the junction's capacity.

Returns
Size The junction's capacity

◆ density()

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

◆ isFull()

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

◆ isRoundabout()

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

Reimplemented in dsf::Roundabout.

◆ setCapacity()

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

Set the junction's capacity.

Parameters
capacityThe junction's capacity

Reimplemented in dsf::Intersection.

◆ setTransportCapacity()

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

Set the junction's transport capacity.

Parameters
capacityThe junction's transport capacity

◆ transportCapacity()

double dsf::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: