-
Notifications
You must be signed in to change notification settings - Fork 4
Re-introduce Agent id attribute #398
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| dsf::mobility::Intersection intersection(0); | ||
| intersection.setCapacity(100); | ||
| auto agent = std::make_unique<dsf::mobility::Agent>( | ||
| spawnTime++, std::make_shared<dsf::mobility::Itinerary>(1, 1), 0); | ||
| 0, spawnTime++, std::make_shared<dsf::mobility::Itinerary>(1, 1), 0); | ||
Check noticeCode scanning / Cppcheck (reported by Codacy) MISRA 12.3 rule Note test
MISRA 12.3 rule
|
||
| intersection.addAgent(0.0, std::move(agent)); | ||
| } | ||
|
Comment on lines
27
to
30
|
||
| } | ||
|
|
@@ -36,7 +36,7 @@ | |
| dsf::mobility::Intersection intersection(0); | ||
| intersection.setCapacity(100); | ||
| auto agent = std::make_unique<dsf::mobility::Agent>( | ||
| spawnTime++, std::make_shared<dsf::mobility::Itinerary>(1, 1), 0); | ||
| 0, spawnTime++, std::make_shared<dsf::mobility::Itinerary>(1, 1), 0); | ||
Check noticeCode scanning / Cppcheck (reported by Codacy) MISRA 12.3 rule Note test
MISRA 12.3 rule
|
||
| intersection.addAgent(std::move(agent)); | ||
| } | ||
| } | ||
|
|
@@ -47,7 +47,7 @@ | |
| std::time_t spawnTime = 0; | ||
| auto pItinerary = std::make_shared<dsf::mobility::Itinerary>(1, 1); | ||
| for (int i = 0; i < 100; ++i) { | ||
| auto agent = std::make_unique<dsf::mobility::Agent>(spawnTime++, pItinerary, 0); | ||
| auto agent = std::make_unique<dsf::mobility::Agent>(0, spawnTime++, pItinerary, 0); | ||
| intersection.addAgent(std::move(agent)); | ||
| } | ||
| for (auto _ : state) { | ||
|
|
@@ -62,7 +62,7 @@ | |
| std::time_t spawnTime = 0; | ||
| auto pItinerary = std::make_shared<dsf::mobility::Itinerary>(1, 1); | ||
| for (int i = 0; i < 100; ++i) { | ||
| auto agent = std::make_unique<dsf::mobility::Agent>(spawnTime++, pItinerary, 0); | ||
| auto agent = std::make_unique<dsf::mobility::Agent>(0, spawnTime++, pItinerary, 0); | ||
| intersection.addAgent(std::move(agent)); | ||
| } | ||
| for (auto _ : state) { | ||
|
|
@@ -77,7 +77,7 @@ | |
| std::time_t spawnTime = 0; | ||
| auto pItinerary = std::make_shared<dsf::mobility::Itinerary>(1, 1); | ||
| for (int i = 0; i < 100; ++i) { | ||
| auto agent = std::make_unique<dsf::mobility::Agent>(spawnTime++, pItinerary, 0); | ||
| auto agent = std::make_unique<dsf::mobility::Agent>(0, spawnTime++, pItinerary, 0); | ||
| intersection.addAgent(std::move(agent)); | ||
| } | ||
| for (auto _ : state) { | ||
|
|
||
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.3 rule Note test