Giter VIP home page Giter VIP logo

elevator-system-simulator's Introduction

Elevator Simulation System

This project is a simulation of an elevator system built using React. It demonstrates the functionality of multiple elevators operating across different floors.

Features

  • Multiple Elevators: The system consists of three elevators, each capable of moving independently between floors.
  • Up and Down Movement: Users can trigger the elevators to move either up or down to reach desired floors.
  • Destination Selection: Users can input their desired destination floor for each elevator.
  • Disabled Input: Input fields for destination selection are disabled when the elevator is not on the current floor to prevent invalid selections.
  • Realistic Time Simulation: The time taken to traverse each floor is simulated to be 2 seconds.

How to Use

  1. Input Floor Number: Enter the desired floor number in the input field labeled "Floor". The elevator system will consider this as the destination floor for the selected elevator.
  2. Select Elevator: For each elevator, input the desired destination floor in the respective input field.
  3. Trigger Movement: Use the arrow buttons (up and down) to trigger the movement of the elevator. Clicking on the up arrow will move the elevator up, and clicking on the down arrow will move it down.
  4. Observing Elevator Position: The current position of each elevator is displayed on the screen.

Installation

  1. Clone the repository:

git clone <repository_url>

  1. Navigate to the project directory:

  2. Install dependencies:

npm install

  1. Start the development server:

npm start

  1. Open the application in your browser:

http://localhost:3000

Technologies Used

  • JavaScript
  • React
  • HTML
  • CSS

Credits

This project is created by Mohammad Nazim Qureshi.

elevator-system-simulator's People

Contributors

officialarmannqureshi avatar

Watchers

 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.