|
| Roundabout (Id id) |
| Construct a new Roundabout object.
|
|
| Roundabout (Id id, std::pair< double, double > coords) |
| Construct a new Roundabout object.
|
|
| Roundabout (const RoadJunction &node) |
| Construct a new Roundabout object.
|
|
void | enqueue (std::unique_ptr< Agent > agentId) |
| Put an agent in the node.
|
|
std::unique_ptr< Agent > | dequeue () |
| Removes the first agent from the node.
|
|
dsm::queue< std::unique_ptr< Agent > > const & | agents () const |
| Get the node's queue.
|
|
double | density () const override |
| Returns the node's density.
|
|
bool | isFull () const override |
| Returns true if the node is full.
|
|
bool | isRoundabout () const noexcept override |
| Returns true if the node is a roundabout.
|
|
| 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 bool | isIntersection () const noexcept |
|
virtual bool | isTrafficLight () 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 |
|