Giter Club home page Giter Club logo

discrete-graphic-traffic's Introduction

discrete-graphic-traffic

Repository for PHYS 200/400 Traffic Flow Project - Dwight, Josh, Ray, Andrew - CalPoly - SLO

How to use discrete-graphic-traffic

  1. Use the GUI:

After cloning or downloading the current source files cd into the discrete-graphic traffic folder and run the following:

python multiple_car.py

This will open the GUI and you will have an intuitive and visual way to manipulate parameters.

  1. Using the classes in your own project: We have created to classes(Lane, Car) as well as a Rules module.

discrete-graphic-traffic's People

Contributors

jmfernandes avatar awstown avatar

Stargazers

 avatar  avatar

Watchers

 avatar Raymond Mullen avatar Andrew Parker avatar  avatar

discrete-graphic-traffic's Issues

Dev Testing

Lets all do some testing on the dev branch and make sure it is working how we expect.

Initial position/speed in Data object

Currently the way the rules file uses the Data object, the simulations don't record the initial position and speed in the history lists. Should I alter the rules file so that the data history includes the starting positions and velocities?

Initialization Screen

Initialization Screen

Ask the following:

  1. Model to use: (stca, asep, ca184)
  2. length of the lane
  3. max num of cars (min?)
  4. Speed limit? (V_max)
  5. Probability, P
  6. Cruise Control (cc)
  7. Time Interval (n)
  8. Animation speed option.

need a way to get position of a specific car

it looks like i can only get the position of all the cars using def car_positions(self). I need a definition to return the position of a specific car. I already figured out how to get the name of the cars using lane.carlist.

Rules Module Documentation

Let's start writing up some more detail documentation into the project plan. I would suggest just using the python command

help(rules)

and take the output and stick it our project plan.md file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.