|
Dynamical system model
|
Public Member Functions | |
| RoadJunction (Id id) | |
| RoadJunction (Id id, geometry::Point 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 constexpr bool | isIntersection () const noexcept |
| virtual constexpr bool | isTrafficLight () const noexcept |
| virtual constexpr 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, geometry::Point point) | |
| Construct a new Node object with capacity 1. | |
| Node (Node const &other) | |
| Node & | operator= (Node const &other) |
| void | setId (Id id) noexcept |
| Set the node's id. | |
| void | setGeometry (geometry::Point point) noexcept |
| Set the node's geometry. | |
| void | setName (const std::string &name) noexcept |
| Set the node's name. | |
| void | addIngoingEdge (Id edgeId) |
| Add an ingoing edge to the node. | |
| void | addOutgoingEdge (Id edgeId) |
| Add an outgoing edge to the node. | |
| Id | id () const |
| Get the node's id. | |
| std::optional< geometry::Point > const & | geometry () const noexcept |
| Get the node's geometry. | |
| std::string const & | name () const noexcept |
| Get the node's name. | |
| std::vector< Id > const & | ingoingEdges () const noexcept |
| std::vector< Id > const & | outgoingEdges () const noexcept |
| virtual bool | isStation () const noexcept |
Additional Inherited Members | |
Protected Attributes inherited from dsf::Node | |
| Id | m_id |
| std::optional< geometry::Point > | m_geometry |
| std::string | m_name |
| std::vector< Id > | m_ingoingEdges |
| std::vector< Id > | m_outgoingEdges |
| Size dsf::mobility::RoadJunction::capacity | ( | ) | const |
Get the junction's capacity.
|
virtual |
Reimplemented in dsf::mobility::Intersection, dsf::mobility::Roundabout, and dsf::mobility::Station.
|
virtual |
Reimplemented in dsf::mobility::Intersection, dsf::mobility::Roundabout, and dsf::mobility::Station.
|
inlineconstexprvirtualnoexcept |
Reimplemented in dsf::mobility::Roundabout.
|
virtual |
Set the junction's capacity.
| capacity | The junction's capacity |
Reimplemented in dsf::mobility::Intersection.
| void dsf::mobility::RoadJunction::setTransportCapacity | ( | double | capacity | ) |
Set the junction's transport capacity.
| capacity | The junction's transport capacity |
| double dsf::mobility::RoadJunction::transportCapacity | ( | ) | const |
Get the junction's transport capacity.