A simple parking lot application built in Java. The parking lot problem is a popular OODP design problem asked by many companies like Gojek, Amazon, Salesforce, Thoughtworks.
- The parking lot have a capacity of n slots.
- Each slot can only hold a car with a registration number and color.
- Cars is always allocated the nearest slot to the entrance (lowest slot number)
- Available commands:
- create_parking_lot
<Size>
- park
<Registration-Num>
<Color>
- leave
<Slot-Num>
- status
- registration_numbers_for_cars_with_colour
<Color>
- slot_numbers_for_cars_with_colour
<Color>
- slot_number_for_registration_number
<Registration-Num>
- create_parking_lot
- Latest JDK
- Maven
mvn clean install
mvn test
- unit tests will also be executed during installation
./bin/run_functional_tests
- Interactive mode:
java -jar target/parkinglot-1.0.jar
- File mode:
java -jar target/parkinglot-1.0.jar <filename>