Question
Draw a UML State machine Diagram for the following two objectives(Note Camera & Drill extends Movement Control UML state machine diagram): Movement Control: Engineers had
Draw a UML State machine Diagram for the following two objectives(Note Camera & Drill extends Movement Control UML state machine diagram):
Movement Control: Engineers had to be creative in order to add all the functionality need for a lunar cruise, so they came up with the following ideas:
When the right pedal was pressed once it accelerates the buggy forward.
If accelerating forward and you press right pedal twice it deaccelerates.
To achieve constant forward speed press the right pedal for more than 5 seconds.
If the buggy is at rest and the left pedal is pressed for more than 5 seconds, it will accelerate backwards
Camera & Drill : The coolest feature of the buggy was not its speed but rather the color television camera, the 16-mm camera, and the drill. The control was packed inside a television control unit. The only problem was that the cameras, and the lunar rover drill were also controlled by the same control unit. So again engineers used the two button controller to manipulate all devices:
Press the button 1 for five seconds to interact with the color camera.
Press the button 1 for ten seconds to interact with the 16-mm camera.
Press button 1 twice to interact with the drill.
Pressing button 2 at any of these modes return to idle state.
In any of the two camera modes, pressing button 1 takes a picture, while if pressed for 5 seconds activates the temporizer(moon selfies).
Last inside the drill mode button 1 only acted as an on off switch.
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