{"id":21158352,"url":"https://github.com/ksalekk/elevator-simulator","last_synced_at":"2025-08-20T16:08:19.766Z","repository":{"id":242428347,"uuid":"807328776","full_name":"ksalekk/elevator-simulator","owner":"ksalekk","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-29T20:04:04.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T09:09:30.235Z","etag":null,"topics":["algorithms","elevator-simulation","java","multithreading"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksalekk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T22:28:25.000Z","updated_at":"2024-06-02T22:03:20.000Z","dependencies_parsed_at":"2024-06-03T01:12:11.568Z","dependency_job_id":null,"html_url":"https://github.com/ksalekk/elevator-simulator","commit_stats":null,"previous_names":["ksalekk/elevator-simulator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksalekk%2Felevator-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksalekk%2Felevator-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksalekk%2Felevator-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksalekk%2Felevator-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksalekk","download_url":"https://codeload.github.com/ksalekk/elevator-simulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243599856,"owners_count":20317181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","elevator-simulation","java","multithreading"],"created_at":"2024-11-20T12:21:31.621Z","updated_at":"2025-03-14T15:27:21.490Z","avatar_url":"https://github.com/ksalekk.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elevator Simulator\n\n## General\nSimple Java console program that simulates the working of an elevator in a building. The program is parameterized with positional arguments:\n```\nF  number of floors in the building\nt  unit of the simulation time, i.e. the time in seconds needed to move one floor by the elevator\np  the probability of a passenger appearing in unit t on a random floor with the intention of traveling to random floor\n```\n\nThe program graphically visualizes the state of the entire system in every unit of time *t* (location of the elevator, current source and destination floors, passengers waiting on each floor etc.).\n\n## Elevator algorithm and architecture\n\n### Elevator algorithm\n- no requests =\u003e elevator stay at the current floor\n- elevator move in one chosen direction from src to dest\n- if the request is on src-\u003edest track, elevator stops and service it (take/release passengers)\n- request is send when passenger takes elevator (src) or go inside elevator (dest)\n\u003cbr /\u003e\u003cbr /\u003e\n\n### Architecture\n![Diagram UML for the simulator](./uml.png)\n\n\n## Run\n1. Make sure you have installed JDK\n```\njavac -version\n```\n2. Clone the repository and compile all .java files\n```\ngit clone https://github.com/ksalekk/elevator-simulator.git\ncd ./elevator-simulator\njavac -d bins ./src/edu/ksalekk/elevatorsimulator/*.java\ncd ./bins\n```\n3. Run test program with specified parameters (remember not to type .class extension)\n```\njava edu/ksalekk/elevatorsimulator/ElevatorSimulatorTest 5 2 0.3\n```\n\nYou can also run the program in your IDE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksalekk%2Felevator-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksalekk%2Felevator-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksalekk%2Felevator-simulator/lists"}