Skip to content
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

Add a simple traffic simulator application #82

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

emmanuel099
Copy link
Member

  • Each car has a pre-defined start and end position
  • The skip time defines the initial delay before the car starts driving
  • The safety distances defines the minimum distance between all cars
  • The road is divided in segments, each segment can be occupied by at most one driving car
  • All cars drive in the same direction
  • The simulation ends as soon as all cars reached their end position

Requires the fix from casm-lang/libcasm-fe#190

 - Each car has a pre-defined start and end position
 - The skip time defines the initial delay before the car starts driving
 - The safety distances defines the minimum distance between all cars
 - The road is divided in segments, each segment can be occupied by at most one driving car
 - All cars drive in the same direction
 - The simulation ends as soon as all cars reached their end position
@emmanuel099 emmanuel099 force-pushed the feature/traffic_sim_application branch from 9ff4c51 to bf9006f Compare August 23, 2019 20:25
@codecov
Copy link

codecov bot commented Aug 23, 2019

Codecov Report

Merging #82 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #82   +/-   ##
=======================================
  Coverage   38.33%   38.33%           
=======================================
  Files           6        6           
  Lines         180      180           
=======================================
  Hits           69       69           
  Misses        111      111
Impacted Files Coverage Δ
etc/src/RunnerBenchmark.cpp 38.46% <0%> (-1.54%) ⬇️
etc/src/RunnerTest.cpp 18.51% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24c4578...bf9006f. Read the comment docs.

Copy link
Member

@ppaulweber ppaulweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice example specification!

@ppaulweber ppaulweber merged commit 7418d57 into master Aug 27, 2019
@ppaulweber ppaulweber deleted the feature/traffic_sim_application branch August 27, 2019 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants