Concurrent and Distributed Systems U3 IP
Illustrate in a state diagram the workings of a software-controlled community exit gate as described below. Add states and events to those mentioned, as necessary. (A diagram with more states is often much clearer than one with complicated guard conditions.) Use superstates if you wish.
- The gate is normally in state Closed.
- It can be opened by the event clickfrom a remote controller.
- In response to click, the software issues the command start-opento the gate hardware.
- The gate is in state Openingwhile it swings fully open.
- When the gate is fully open, the software starts a timer and the gate enters stateOpened.
- It can be opened by the event clickfrom a remote controller.
- After tseconds in Opened, the software attempts to close the gate.
- If no obstacle is detected above a roadway sensor, the software issues the command start-close, and the gate enters state Closing.
- In Closing, in response to click,the software issues the commands stopand start-open; the gate enters the stateOpening.
- If an obstacle is detected, the software restarts the timer; the gate remains open.
- After tseconds, another attempt is made, and so forth.
- When the gate is fully closed, it enters state Closed.
- If no obstacle is detected above a roadway sensor, the software issues the command start-close, and the gate enters state Closing.
- Unless the gate is already fully open, a power cutevent causes it to open fully on back-up power.
- For this, the software issues the command start-bkp-openand the gate entersEmergency Opening
- If power is restored—the event power up<
- For this, the software issues the command start-bkp-openand the gate entersEmergency Opening
7 years ago
25
Answer(0)
other Questions(10)
- project8-1k
- Identify the fundamental concepts of network security and security policy according to various viewpoints and try to systematize them in a succinct and yet comprehensive contribution.
- Humanities 101 essay
- Ethics and Personal Leadership Development
- A plus writer
- Sir_Excellence
- What are some examples of community-based programs? What are some advantages and disadvantages of certain community-based programs?
- Financial Management
- TLMT 603 wk 5
- Due tomorrow