Exercise No. 7: AIM: To Prepare STATE CHART DIAGRAM For Weather Forecasting System. Requirements: Hardware Interfaces
Exercise No. 7: AIM: To Prepare STATE CHART DIAGRAM For Weather Forecasting System. Requirements: Hardware Interfaces
Exercise No. 7: AIM: To Prepare STATE CHART DIAGRAM For Weather Forecasting System. Requirements: Hardware Interfaces
7
AIM: To prepare STATE CHART DIAGRAM for Weather Forecasting System.
REQUIREMENTS:
Hardware Interfaces
Software Interfaces
THEORY:
State Chart Diagrams provide a way to model the various states in which an
object can exist.
There are two special states: the start state and the stop state.
The Start state is represented by a block dot.
The Stop state is represented by a bull’s eye.
A condition enclosed in square brackets is called a guard condition, and
controls when a transition can or cannot occur.
Process that occur while an object is in certain state are called actions.
Now arrange the states to fill the diagram better. Drag the states to new positions to make
the easiest layout to work with.
Add an end state to the diagram by clicking the “END STATE” button. Place an instance
into the diagram. Now add relationships to the diagram.
Click on the “STATE TRANSITION” button and drag arrows between the appropriate
states.
To edit the specification secondary click on the relation lines and select “OPEN
SPECIFICATION” button. Add a name for the event in the specification. Then click on
“apply” and then on “OK” button.
Add details to the specifications of the other relationships in the same way.
There may be instances on the diagram where a state can join more than one state. In this
case add a relationship in the same way. Then enter the specification for the new state.
Conclusion: The state chart diagram was made successfully by following the steps described
above.
This is how a state chart diagram is made.