{"id":27865107,"url":"https://github.com/cleverfool77/parkinglot","last_synced_at":"2025-06-13T17:08:21.832Z","repository":{"id":130296388,"uuid":"266326090","full_name":"CleverFool77/ParkingLot","owner":"CleverFool77","description":"Implementation of ParkingLot problem using Java, Google guice, guava and tested using Junit-Mockito. Made for understanding concepts","archived":false,"fork":false,"pushed_at":"2020-06-06T07:38:26.000Z","size":106,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-04T21:17:54.122Z","etag":null,"topics":["guava","guice","java","java-8","junit","mockito"],"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/CleverFool77.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,"zenodo":null}},"created_at":"2020-05-23T11:52:07.000Z","updated_at":"2020-09-12T17:11:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"90c6b4d3-6abb-4f65-8aa0-45aa2c709839","html_url":"https://github.com/CleverFool77/ParkingLot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CleverFool77/ParkingLot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverFool77%2FParkingLot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverFool77%2FParkingLot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverFool77%2FParkingLot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverFool77%2FParkingLot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleverFool77","download_url":"https://codeload.github.com/CleverFool77/ParkingLot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleverFool77%2FParkingLot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259686133,"owners_count":22896055,"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":["guava","guice","java","java-8","junit","mockito"],"created_at":"2025-05-04T21:17:52.468Z","updated_at":"2025-06-13T17:08:21.814Z","avatar_url":"https://github.com/CleverFool77.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ParkingLot\n\n```\nSimple Implementation of ParkingLot problem using Java, Google guice, guava and tested using Junit-Mockito. \nThis was made to understand the concepts and for learning purpose.\n```\n\u003e This code tries to follow and adapt Design Pattern such as Command and Factory pattern in it.\n\n## Problem Statement\nI own a parking lot that can hold up to \u0026#39;n\u0026#39; cars at any given point in time. Each slot is\ngiven a number starting at 1 increasing with increasing distance from the entry point\nin steps of one. I want to create an automated ticketing system that allows my\ncustomers to use my parking lot without human intervention.\nWhen a car enters my parking lot, I want to have a ticket issued to the driver. The\nticket issuing process includes us documenting the registration number (number\nplate) and the colour of the car and allocating an available parking slot to the car\nbefore actually handing over a ticket to the driver (we assume that our customers are\nnice enough to always park in the slots allocated to them). The customer should be\nallocated a parking slot which is nearest to the entry. At the exit the customer returns\nthe ticket which then marks the slot they were using as being available.\nDue to government regulation, the system should provide me with the ability to find\nout:\n- Registration numbers of all cars of a particular colour.\n- Slot number in which a car with a given registration number is parked.\n- Slot numbers of all slots where a car of a particular colour is parked.\n#\n## Tech Stacks\n1|2|3|4|\n| --- | --- | --- | --- | \nLanguage - Java 8| Framework - Google Guice | Libraries - Guava | Testing - Junit, Mockito| \n## Usage\n ### Steps to Run\n* Use any of the Java IDE to run this code\n* Clone and Import in Intellij IDE (You can use anyone of them)\n* Build gradle to install all dependencies\n* Run Main Class\n* You'll get two options to choose from which are file and interactive input.\n* Choose anyone of them and here you go !!\n\n### Commands \n* Create parking lot using `create_parking_lot capacity_Size`\n* Park vehicle using `park regsitrationNumber color`\n* Unpark vehicle using `leave slotNumber` \n* Check status of parking Lot `status`\n* Get Registration numbers of all cars of a particular colour using `registration_numbers_for_cars_with_colour colorName`\n* Get Slot number in which a car with a given color is parked using `slot_numbers_for_cars_with_colour colorname`\n* Get Slot number in which a car with a given registration number is parked using `slot_number_for_registration_number registrationNumber`\n* Exit using `exit`\n\n\u003csup\u003e[]()\u003c/sup\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleverfool77%2Fparkinglot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleverfool77%2Fparkinglot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleverfool77%2Fparkinglot/lists"}