Question
You are required to design a UML class diagram for a system to be installed to control elevators in a building with m floors. The
You are required to design a UML class diagram for a system to be installed to control elevators in a building with m floors. The problem concerns the logic required to move elevators between floors according to the following requirements:
Each elevator has a set of m buttons, one for each floor. These illuminate when pressed and cause the elevator to visit the corresponding floor. The illumination is canceled when the elevator visits the corresponding floor.
Each floor, except the first floor and top floor has two buttons, one to request and up-elevator and one to request a down-elevator. These buttons illuminate when pressed. The illumination is canceled when an elevator visits the floor and then moves in the desired direction.
When an elevator has no requests, it remains at its current floor with its doors closed.
Draw a detailed class diagram for this system. Include relationships between classes (generalization and association) with proper multiplicities.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started