From 41b77d9b3c47e95fd97efb370231e81fdb189a35 Mon Sep 17 00:00:00 2001 From: Vipul Verma <65363050+VIPverma01@users.noreply.github.com> Date: Sat, 10 May 2025 19:10:39 +0530 Subject: [PATCH] Updated the right field information for Request Entity in Elevator System The field information for the Request entity in the elevator system was different than what had been used in the code. Updated the README of the elevator system with the right field values. --- solutions/java/src/elevatorsystem/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/java/src/elevatorsystem/README.md b/solutions/java/src/elevatorsystem/README.md index b700bf09..c2795a58 100644 --- a/solutions/java/src/elevatorsystem/README.md +++ b/solutions/java/src/elevatorsystem/README.md @@ -37,7 +37,7 @@ Design and implement an Elevator System that can handle multiple requests, move - **Methods:** requestElevator(int floor, Direction direction), step(), etc. ### 3. Request -- **Fields:** int floor, Direction direction +- **Fields:** int sourceFloor, int destinationFloor ### 4. Direction (enum) - Values: UP, DOWN, IDLE @@ -71,4 +71,4 @@ See `ElevatorSystemDemo.java` for a sample usage and simulation of the elevator - **Advanced scheduling:** Implement algorithms for optimal elevator assignment. - **Add features:** Such as maintenance mode, emergency stop, or floor display. ---- \ No newline at end of file +---