Giter Site home page Giter Site logo

railway's Introduction

This program analyzes possible appearance of train accidents

Design decisions
Length of way is an integer. There is no circle motion, - there are single
bidirectional tracks between stations. But train drivers are hooligans and
sometimes reverse motion could be given. Station and train are presented as
a point. Every station has a capacity - quantity of trains in that station in the
moment.

Name of station should consist of letters. Every section of railway has name
that consist of start name point and end name point, sorted in lexicographical
order. There is no waiting time for trains, so, for example station.arrival =
station.departure. Traffic Service has a railway configuration and makes the
overall sections timetable and stations timing.
This is not work timetable, but timetable for routes analysis

Sections timetable consist of shedules for every section of railway:
Traffic shedule of way section AB (A-B)

Item Train number A.departure B.arrival
1 256 t1 t2
2 128 t3 t4
3 64 t5 t6
Usage example

python3 railway.py --config /usr/local/etc/railway_config.conf --routes /usr/local/etc/routes.conf

By default script takes conf files from current directory
Test version python3.7

railway's People

Contributors

lnalinaf avatar

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.