Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visit for more Learning Resources

Similar presentations


Presentation on theme: "Visit for more Learning Resources"— Presentation transcript:

1 Visit for more Learning Resources

2 Ch4 Advanced Behavioral Modeling
An activity diagram are mainly used to show the flow from activity to activity within a system. It views set of activities.

3 It views flow from activity to activity.
It represents the dynamic view of system. Activity Diagram focuses on the flow of control among objects.

4 An activity diagram is a kind of a flowchart which shows flow of control from activity to activity.
An activity diagram is used to demonstrate the dynamic nature of a system by modeling the flow of control from activity to activity.

5 These diagrams are used to model the dynamic aspects of a system
These diagrams are used to model the dynamic aspects of a system. An activity diagram is used to demonstrate the dynamic nature of a system by modeling the flow of control from activity to activity.

6 Notations for activity Diagram
Actions and activity nodes: The main element of an activity diagram is the activity itself. An activity is a function performed by the system. Executable atomic computations are called as actions.

7 Actions and activity nodes:
Process bill ACTION

8 2.Initalization 1.Initial State : Initial state is shown by a filled circle followed by an arrow which depicts the initial action state.

9 3.Completion Final state: Final state can be shown by an arrow pointing to a circle with the filled circle inside.

10 4.Decisions (Branching)
While showing branching a diamond symbol is used to show the decision with alternative paths. The outgoing alternatives should be labeled with a condition or expression. We may use “else” also.

11 4.Decisions (Branching)
ACTIVITY Condition Activity Condition

12 5.Join And Fork It introduces concurrent flows. UML introduces the use of synchronization bar to specify the forking and joining of these parallel flows of control. A synchronization bar is drawn as a thick horizontal or vertical line.

13 The join symbol, or synchronization bar, is a thick vertical or horizontal line.
It combines two concurrent activities and re-introduces them to a flow where only one activity occurs at a time.

14 A fork is symbolized with multiple arrowed lines from a join
A fork is symbolized with multiple arrowed lines from a join. It splits a single activity flow into two concurrent activities.

15 Prepare for speech FORK Decompress Gesture Stream audio Synch Mouth JOIN CleanUP

16 Request for the book Verify Library Card Validate CARD SEARCH FOR BOOK ISSUE BOOK No Book ISSUE

17 STATE CHART DIAGRAM/STATE DIAGRAM
State chart diagram used to model dynamic nature of a system. They define different states of an object during its lifetime. And these states are changed by events

18 State chart diagram defines states.
It is used to model the lifetime of an object. It describes different states of a component in a system. The states are specific to a component/object of a system.

19 A State chart diagram describes a state machine.
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.

20 State chart diagram describes the flow of control from one state to another state.
States are defined as a condition in which an object exists and it changes when some event is triggered.

21 Following are the main purposes of using State chart diagrams:
To model dynamic aspect of a system. To model life time of an object from a system.

22 To describe different states of an object during its life time.
Define a state machine to model states of an object.

23

24

25 Example of a State chart diagram where the state of Order object is analyzed.
The first state is an idle state from where the process starts. The next states are arrived for events like send request, confirm request, and dispatch order. These events are responsible for state changes of order object.

26

27

28 For more detail contact us


Download ppt "Visit for more Learning Resources"

Similar presentations


Ads by Google