Skip to content

Commit b95f0c9

Browse files
committed
Fix docstrings
1 parent c4b7d2a commit b95f0c9

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

src/dsf/base/Network.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ namespace dsf {
4242
/// @brief Add a node to the network
4343
/// @tparam TNode The type of the node (default is node_t)
4444
/// @tparam TArgs The types of the arguments
45-
/// @param nodeId The node's id
4645
/// @param args The arguments to pass to the node's constructor
4746
template <typename TNode = node_t, typename... TArgs>
4847
requires(std::is_base_of_v<node_t, TNode> &&
@@ -56,7 +55,6 @@ namespace dsf {
5655
/// @brief Add an edge to the network
5756
/// @tparam TEdge The type of the edge (default is edge_t)
5857
/// @tparam TArgs The types of the arguments
59-
/// @param edgeId The edge's id
6058
/// @param args The arguments to pass to the edge's constructor
6159
template <typename TEdge = edge_t, typename... TArgs>
6260
requires(std::is_base_of_v<edge_t, TEdge> &&

src/dsf/mobility/Itinerary.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace dsf::mobility {
3030

3131
public:
3232
/// @brief Construct a new Itinerary object
33+
/// @param id The itinerary's id
3334
/// @param destination The itinerary's destination
3435
Itinerary(Id id, Id destination);
3536

src/dsf/mobility/Road.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace dsf::mobility {
2828
/// @param nLanes The road's number of lanes (default is 1)
2929
/// @param maxSpeed The road's speed limit, in m/s (default is 50 km/h)
3030
/// @param name The road's name (default is an empty string)
31+
/// @param geometry The road's geometry (default is empty)
3132
/// @param capacity The road's capacity (default is the maximum number of vehicles that can fit in the road)
3233
/// @param transportCapacity The road's transport capacity (default is 1)
3334
Road(Id id,

src/dsf/mobility/RoadDynamics.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,14 @@ namespace dsf::mobility {
348348
/// @brief Save the street densities in csv format
349349
/// @param filename The name of the file (default is "{datetime}_{simulation_name}_street_densities.csv")
350350
/// @param normalized If true, the densities are normalized in [0, 1]
351+
/// @param separator The separator character (default is ';')
351352
void saveStreetDensities(std::string filename = std::string(),
352353
bool normalized = true,
353354
char const separator = ';') const;
354355
/// @brief Save the street input counts in csv format
355356
/// @param filename The name of the file
356357
/// @param reset If true, the input counts are cleared after the computation
358+
/// @param separator The separator character (default is ';')
357359
/// @details NOTE: counts are saved only if the street has a coil on it
358360
void saveCoilCounts(const std::string& filename,
359361
bool reset = false,

src/dsf/mobility/RoadNetwork.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,12 @@ namespace dsf::mobility {
119119
/// - forbiddenTurns: The forbidden turns of the street, encoding information about street into which the street cannot output agents. The format is a string "sourceId1-targetid1, sourceId2-targetid2,..."
120120
/// - coilcode: An integer code to identify the coil located on the street
121121
/// - customWeight: will be stored in the `weight` parameter of the Edge class. You can use it for the shortest path via dsf::weight_functions::customWeight.
122+
/// @param args Additional arguments
122123
template <typename... TArgs>
123124
void importEdges(const std::string& fileName, TArgs&&... args);
124125
/// @brief Import the graph's nodes properties from a file
125126
/// @param fileName The name of the file to import the nodes properties from.
127+
/// @param args Additional arguments
126128
/// @details Supports csv file format. Please specify the separator as second parameter.
127129
/// Supported fields:
128130
/// - id: The id of the node

src/dsf/mobility/Street.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ namespace dsf::mobility {
5959
/// @param nLanes The street's number of lanes (default is 1)
6060
/// @param maxSpeed The street's speed limit, in m/s (default is 50 km/h)
6161
/// @param name The street's name (default is an empty string)
62+
/// @param geometry The street's geometry
6263
/// @param capacity The street's capacity (default is the maximum number of vehicles that can fit in the street)
6364
/// @param transportCapacity The street's transport capacity (default is 1)
6465
Street(Id id,
@@ -79,6 +80,7 @@ namespace dsf::mobility {
7980
void setLaneMapping(std::vector<Direction> const& laneMapping);
8081
/// @brief Set the street's queue
8182
/// @param queue The street's queue
83+
/// @param index The index of the queue
8284
void setQueue(dsf::queue<std::unique_ptr<Agent>> queue, size_t index);
8385
/// @brief Set the mean vehicle length
8486
/// @param meanVehicleLength The mean vehicle length
@@ -155,7 +157,7 @@ namespace dsf::mobility {
155157
/// @param pAgent The agent to add to the street
156158
virtual void addAgent(std::unique_ptr<Agent> pAgent);
157159
/// @brief Add an agent to the street's queue
158-
/// @param agentId The id of the agent to add to the street's queue
160+
/// @param queueId The id of the queue
159161
/// @throw std::runtime_error If the street's queue is full
160162
void enqueue(size_t const& queueId);
161163
/// @brief Remove an agent from the street's queue

0 commit comments

Comments
 (0)