thoughtsbas.blogg.se

Perbedaan state chart dan activity diagram
Perbedaan state chart dan activity diagram








Emphasis is placed on the state changes upon some internal or external events. Statechart diagram is used to describe the states of different objects in its life cycle. To describe different states of an object during its life time.ĭefine a state machine to model the states of an object. To model the life time of a reactive system. However, the main purpose is to model the reactive system.įollowing are the main purposes of using Statechart diagrams − Statechart diagrams are also used for forward and reverse engineering of a system. The most important purpose of Statechart diagram is to model lifetime of an object from creation to termination. States are defined as a condition in which an object exists and it changes when some event is triggered. Statechart diagram describes the flow of control from one state to another state. Reactive systems can be defined as a system that responds to external or internal events. Statechart diagrams are useful to model the reactive systems. They define different states of an object during its lifetime and these states are changed by events. Statechart diagram is one of the five UML diagrams used to model the dynamic nature of a system. As Statechart diagram defines the states, it is used to model the lifetime of an object. State machine can be defined as a machine which defines different states of an object and these states are controlled by external or internal events.Īctivity diagram explained in the next chapter, is a special kind of a Statechart diagram. The states are specific to a component/object of a system.Ī Statechart diagram describes a state machine. Itdescribes different states of a component in a system. The name of the diagram itself clarifies the purpose of the diagram and other details.










Perbedaan state chart dan activity diagram