|
| RoadJunction (Id id) |
|
| RoadJunction (Id id, std::pair< double, double > coords) |
|
| RoadJunction (RoadJunction const &other) |
|
RoadJunction & | operator= (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 |
|
| 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) |
|
Node & | operator= (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 |
|
|
Id | m_id |
|
std::optional< std::pair< double, double > > | m_coords |
|
std::string | m_name |
|
◆ 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 |
◆ setCapacity()
virtual void dsm::RoadJunction::setCapacity |
( |
Size | capacity | ) |
|
|
virtual |
Set the junction's capacity.
- Parameters
-
capacity | The junction's capacity |
Reimplemented in dsm::Intersection.
◆ setTransportCapacity()
void dsm::RoadJunction::setTransportCapacity |
( |
double | capacity | ) |
|
Set the junction's transport capacity.
- Parameters
-
capacity | The 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:
- src/dsm/headers/RoadJunction.hpp