hasmemory.blogg.se

Perbedaan activity diagram dan state machine diagram
Perbedaan activity diagram dan state machine diagram






perbedaan activity diagram dan state machine diagram perbedaan activity diagram dan state machine diagram

The abstraction of the attribute value is a property of the system, rather than a globally applicable rule. This is because the state of the bank account is changed from positive to negative in technical jargon, a transition from the positive state to the negative state is fired.

perbedaan activity diagram dan state machine diagram

However, if the account balance would become negative after a withdrawal, the behavior of the withdraw function would be quite different. 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.Activity diagram explained in the next chapter, is a special kind of a Statechart diagram. In such situations, the withdrawals do not affect the abstraction of the attribute values, and hence the gross behavior of the object remains unchanged. The states are specific to a component/object of a system.A Statechart diagram describes a state machine. The behavior of the withdraw function would be: balance := balance - withdrawAmount provided that the balance after the withdrawal is not less than $0 this is true regardless of how many times you have withdrawn money from the bank. and they are typically used in conjunction with interaction diagrams (usually sequence diagrams).Ĭonsider you have $100,000 in a bank account. Singkatnya, Activity Diagram menggambarkan interaksi user. State machine diagrams are usually applied to objects but can be applied to any element that has behavior to other entities such as: actors, use cases, methods, subsystems systems and etc. Meskipun sama-sama menggambarkan aktivitas dan interaksi user dengan sistem, namun keduanya memiliki perbedaan yang cukup signifikan. An object responds differently to the same event depending on what state it is in. State machine diagram typically are used to describe state-dependent behavior for an object.








Perbedaan activity diagram dan state machine diagram