MCPcopy Create free account

hub / github.com/anomaly2104/lld-parking-lot / types & classes

Types & classes43 in github.com/anomaly2104/lld-parking-lot

ClassCar
Model object to represent a car.
src/main/java/com/uditagarwal/model/Car.java:6
ClassColorToRegNumberCommandExecutor
Executor to handle command of fetching all registration number of cars of a particular color.
src/main/java/com/uditagarwal/commands/ColorToRegNumberCommandExecutor.java:13
ClassColorToRegNumberCommandExecutorTest
src/test/java/com/uditagarwal/commands/ColorToRegNumberCommandExecutorTest.java:19
ClassColorToSlotNumberCommandExecutor
Executor to handle command of fetching all slot numbers in which cars of a particular color are parked.
src/main/java/com/uditagarwal/commands/ColorToSlotNumberCommandExecutor.java:14
ClassColorToSlotNumberCommandExecutorTest
src/test/java/com/uditagarwal/commands/ColorToSlotNumberCommandExecutorTest.java:19
ClassCommand
Model object to represent a input command.
src/main/java/com/uditagarwal/model/Command.java:11
ClassCommandExecutor
Command executor interface.
src/main/java/com/uditagarwal/commands/CommandExecutor.java:10
ClassCommandExecutorFactory
Factory to get correct {@link CommandExecutor} from a given command.
src/main/java/com/uditagarwal/commands/CommandExecutorFactory.java:13
ClassCommandExecutorFactoryTest
src/test/java/com/uditagarwal/commands/CommandExecutorFactoryTest.java:13
ClassCommandTest
src/test/java/com/uditagarwal/model/CommandTest.java:12
ClassCreateParkingLotCommandExecutor
Executor to handle command of creating the initial parking lot.
src/main/java/com/uditagarwal/commands/CreateParkingLotCommandExecutor.java:14
ClassCreateParkingLotCommandExecutorTest
src/test/java/com/uditagarwal/commands/CreateParkingLotCommandExecutorTest.java:19
ClassExitCommandExecutor
Executor to handle command of exiting from the parking lot service. This is used in interactive mode to exit.
src/main/java/com/uditagarwal/commands/ExitCommandExecutor.java:11
ClassExitCommandExecutorTest
src/test/java/com/uditagarwal/commands/ExitCommandExecutorTest.java:14
ClassFileMode
Mode running in which input commands are given from a file.
src/main/java/com/uditagarwal/mode/FileMode.java:15
ClassIntegerValidator
src/main/java/com/uditagarwal/validator/IntegerValidator.java:3
ClassInteractiveMode
Mode running in which input commands are given from an interactive shell.
src/main/java/com/uditagarwal/mode/InteractiveMode.java:14
ClassInvalidCommandException
Exception given when the command given is invalid or the command params are invalid.
src/main/java/com/uditagarwal/exception/InvalidCommandException.java:6
ClassInvalidModeException
Exception given when the mode cannot be decided for the parking lot program.
src/main/java/com/uditagarwal/exception/InvalidModeException.java:6
ClassInvalidSlotException
Exception given when the slot given in input is not a valid slot.
src/main/java/com/uditagarwal/exception/InvalidSlotException.java:6
ClassLeaveCommandExecutor
Executor to handle command of freeing of slot from a car.
src/main/java/com/uditagarwal/commands/LeaveCommandExecutor.java:12
ClassLeaveCommandExecutorTest
src/test/java/com/uditagarwal/commands/LeaveCommandExecutorTest.java:14
ClassMain
src/main/java/com/uditagarwal/Main.java:10
ClassMainTest
src/test/java/com/uditagarwal/MainTest.java:16
ClassMode
Interface for mode of the program in which it can be run.
src/main/java/com/uditagarwal/mode/Mode.java:13
ClassNaturalOrderingParkingStrategy
Parking strategy in which the natural ordering numbers are used for deciding the slot numbers. For example, 1st car will be parked in slot 1, then nex
src/main/java/com/uditagarwal/model/parking/strategy/NaturalOrderingParkingStrategy.java:10
ClassNaturalOrderingParkingStrategyTest
src/test/java/com/uditagarwal/model/parking/strategy/NaturalOrderingParkingStrategyTest.java:8
ClassNoFreeSlotAvailableException
Exception given when parking lot is full and we still try to park a car into it.
src/main/java/com/uditagarwal/exception/NoFreeSlotAvailableException.java:6
ClassOutputPrinter
Printer to help in printing the output back to the user. Output medium can be changed here anytime without affecting any of the other code. Currently,
src/main/java/com/uditagarwal/OutputPrinter.java:8
ClassParkCommandExecutor
Executor to handle command of parking a car into the parking lot. This outputs the alloted slot in which the car is parked.
src/main/java/com/uditagarwal/commands/ParkCommandExecutor.java:13
ClassParkCommandExecutorTest
src/test/java/com/uditagarwal/commands/ParkCommandExecutorTest.java:20
ClassParkingLot
Model object to represent the functioning of a parking lot.
src/main/java/com/uditagarwal/model/ParkingLot.java:12
ClassParkingLotException
Generic exception for general parking lot exceptions.
src/main/java/com/uditagarwal/exception/ParkingLotException.java:6
ClassParkingLotService
Service for enable the functioning of a parking lot. This will have all the business logic of how the parking service will operate.
src/main/java/com/uditagarwal/service/ParkingLotService.java:17
ClassParkingLotServiceTest
src/test/java/com/uditagarwal/service/ParkingLotServiceTest.java:20
ClassParkingLotTest
src/test/java/com/uditagarwal/model/ParkingLotTest.java:10
InterfaceParkingStrategy
Strategy which will be used to decide how slots will be used to park the car.
src/main/java/com/uditagarwal/model/parking/strategy/ParkingStrategy.java:6
ClassSlot
src/main/java/com/uditagarwal/model/Slot.java:3
ClassSlotAlreadyOccupiedException
Exception given when an already occupied slot is used to park a car into it.
src/main/java/com/uditagarwal/exception/SlotAlreadyOccupiedException.java:6
ClassSlotForRegNumberCommandExecutor
Executor to handle command of fetching slot number of a car with a given registration number.
src/main/java/com/uditagarwal/commands/SlotForRegNumberCommandExecutor.java:13
ClassSlotForRegNumberCommandExecutorTest
src/test/java/com/uditagarwal/commands/SlotForRegNumberCommandExecutorTest.java:20
ClassStatusCommandExecutor
Executor to handle command of fetching the current status of the parking lot. It gives which slot has which car. Car details will have both its regist
src/main/java/com/uditagarwal/commands/StatusCommandExecutor.java:14
ClassStatusCommandExecutorTest
src/test/java/com/uditagarwal/commands/StatusCommandExecutorTest.java:20