-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor coils #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor coils #364
Changes from 1 commit
ba6f4b8
74b6bbe
474d4f2
fdc50f7
62f89f1
3c03a8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -56,7 +56,7 @@ | |||||||||||||
| tbb::concurrent_unordered_map<Id, std::unordered_map<Direction, double>> | ||||||||||||||
| m_queuesAtTrafficLights; | ||||||||||||||
| tbb::concurrent_vector<std::pair<double, double>> m_travelDTs; | ||||||||||||||
| std::time_t m_previousOptimizationTime, m_previousSpireTime; | ||||||||||||||
| std::time_t m_previousOptimizationTime; | ||||||||||||||
|
|
||||||||||||||
| private: | ||||||||||||||
| std::function<double(std::unique_ptr<Street> const&)> m_weightFunction; | ||||||||||||||
|
|
@@ -320,16 +320,6 @@ | |||||||||||||
| /// @param above If true, the function returns the mean flow of the streets with a density above the threshold, otherwise below | ||||||||||||||
| /// @return Measurement<double> The mean flow of the streets and the standard deviation | ||||||||||||||
| Measurement<double> streetMeanFlow(double threshold, bool above) const; | ||||||||||||||
| /// @brief Get the mean spire input flow of the streets in \f$s^{-1}\f$ | ||||||||||||||
| /// @param resetValue If true, the spire input/output flows are cleared after the computation | ||||||||||||||
| /// @return Measurement<double> The mean spire input flow of the streets and the standard deviation | ||||||||||||||
| /// @details The spire input flow is computed as the sum of counts over the product of the number of spires and the time delta | ||||||||||||||
| Measurement<double> meanSpireInputFlow(bool resetValue = true); | ||||||||||||||
| /// @brief Get the mean spire output flow of the streets in \f$s^{-1}\f$ | ||||||||||||||
| /// @param resetValue If true, the spire output/input flows are cleared after the computation | ||||||||||||||
| /// @return Measurement<double> The mean spire output flow of the streets and the standard deviation | ||||||||||||||
| /// @details The spire output flow is computed as the sum of counts over the product of the number of spires and the time delta | ||||||||||||||
| Measurement<double> meanSpireOutputFlow(bool resetValue = true); | ||||||||||||||
|
|
||||||||||||||
| /// @brief Save the street densities in csv format | ||||||||||||||
| /// @param filename The name of the file (default is "{datetime}_{simulation_name}_street_densities.csv") | ||||||||||||||
|
|
@@ -340,17 +330,10 @@ | |||||||||||||
| /// @brief Save the street input counts in csv format | ||||||||||||||
| /// @param filename The name of the file | ||||||||||||||
| /// @param reset If true, the input counts are cleared after the computation | ||||||||||||||
|
Comment on lines
330
to
332
|
||||||||||||||
| /// @brief Save the street input counts in csv format | |
| /// @param filename The name of the file | |
| /// @param reset If true, the input counts are cleared after the computation | |
| /// @brief Save the coil counts from streets with coils in csv format | |
| /// @param filename The name of the file | |
| /// @param reset If true, the coil counts are cleared after the computation |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 17.8 rule Note
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 17.8 rule Note
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
Outdated
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
Check warning
Code scanning / Cppcheck (reported by Codacy)
Parameter 'state' can be declared with const Warning test