Giter Site home page Giter Site logo

bussimulation's Introduction

BusSimulation

This is a java multithread project example of simulating bus system.

The purpose of the simulation is to observe the behavior of the system and the waiting queue at each stop. Buses will continuous go through each bus stops and pick up passengers (if there are).

User can decide following parameters at the beginning of the simulation: number of bus stops (15 by default) number of buses (5 by default) time to drive between two contiguous stops (5 minutes by default) mean arrival rate of passengers at each stop (5 persons/min by default) boarding time for each passenger (2 seconds by default) program running time (8 hours by default)

The program will pop-up a simple visible window that let user see clearly what happens to each bus and bus stops, and will store the waiting queue size and bus location every 30 minutes to save.txt. You can find this file under the project folder. The program will automatically exit after the time user defined or manually stopped by click at the close button. Before exit it will also save all the parameters for this time to the output 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.