|
| Station (Id id, Delay managementTime) |
| Construct a new Station object.
|
|
| Station (Id id, std::pair< double, double > coords, Delay managementTime) |
| Construct a new Station object.
|
|
| Station (Node const &node, Delay managementTime) |
| Construct a new Station object.
|
|
| Station (Station const &other) |
| Construct a new Station object by copying another Station object.
|
|
void | enqueue (Id trainId, train_t trainType) |
| Enqueue a train in the station.
|
|
Id | dequeue () |
| Dequeue a train from the station.
|
|
Delay | managementTime () const |
| Get the time it takes between two train departures/arrivals.
|
|
double | density () const final |
| Get the train density of the station.
|
|
bool | isFull () const final |
| Check if the station is full.
|
|
bool | isStation () const noexcept final |
| Check if the node is a station.
|
|
| 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.
|
|
virtual void | setCapacity (Size capacity) |
| Set the node's capacity.
|
|
virtual void | setTransportCapacity (int capacity) |
| Set the node's transport capacity.
|
|
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.
|
|
Size | capacity () const |
| Get the node's capacity.
|
|
int | transportCapacity () const |
| Get the node's transport capacity.
|
|
virtual bool | isIntersection () const noexcept |
|
virtual bool | isTrafficLight () const noexcept |
|
virtual bool | isRoundabout () const noexcept |
|