Coder Social home page Coder Social logo

internshipsubmission's Introduction

Program to manage the calls for the lift

This program manages the calls for the lift from each floor and shows the path of the lift in order to achieve the maximum efficiency.

Working

The program uses two working threads to manage its functioning.

The first thread is responsible for data collection and storing it according to the type of request made.

The second thread is responsible for parsing the data and managing which direction the lift should go or stop. This thread also manages to stop the lift at those floors which are in its path i.e. if the lift is supposed to go to 12th floor and someone at 8th floor requests to go up if the lift is coming from lower lever at the time the request is made, the lift will stop at 8th floor and in case the request was for going down it will do the same after completing the ongoing request. This thread also manages the output window which displays the current state of the lift.

Video Demonstration

Click on the gif to view in a higher resolution

Click to view at higher resolution

This is a demonstration for the code's ability to manage the floor calls on the fly. The code takes the input from the floor and manages the path of the lift so that if the lift is moving in one direction all the calls for that are first attended. By doing this the unnecessary directional changes in the path are prevented.

Click to view at higher resolution

This is to demonstrate the ability to filter out the invalid inputs which are entered during the runtime.

Click to view at higher resolution

This demonstrates if the directional buttons are pressed on the same floor the lift's output changes accordingly while staying at the same floor.

Functional Flow Chart

internshipsubmission's People

Contributors

superuserockx avatar

Watchers

 avatar  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.