|
| NodeConcept (Id id) |
| Construct a new Node object with capacity 1.
|
|
| NodeConcept (Id id, std::pair< double, double > coords) |
| Construct a new Node object with capacity 1.
|
|
void | setId (Id id) |
| Set the node's id.
|
|
void | setCoords (std::pair< double, double > coords) |
| Set the node's coordinates.
|
|
virtual void | setCapacity (Size capacity) |
| Set the node's capacity.
|
|
Id | id () const |
| Get the node's id.
|
|
const std::optional< std::pair< double, double > > & | coords () const |
| Get the node's coordinates.
|
|
Size | capacity () const |
| Get the node's capacity.
|
|
virtual bool | isFull () const =0 |
|
virtual bool | isIntersection () const noexcept |
|
virtual bool | isTrafficLight () const noexcept |
|
virtual bool | isRoundabout () const noexcept |
|
template<typename Id, typename Size>
requires (std::unsigned_integral<Id> && std::unsigned_integral<Size>)
class dsm::NodeConcept< Id, Size >
The NodeConcept class represents the concept of a node in the network.
- Template Parameters
-
Id | The type of the node's id |
Size | The type of the node's capacity |