Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
CST205 OBJECT ORIENTED
PROGRAMMING USING JAVA
MODULE 1-Activity Diagram ACTIVITY DIAGRAM ACTIVITY DIAGRAM is basically a flowchart to represent the flow from one activity to another activity. The activity can be described as an operation of the system The basic purpose of activity diagrams is to capture the dynamic behaviour of the system It is also called object-oriented flowchart Activity diagrams are not only used for visualizing the dynamic nature of a system, but they are also used to construct the executable system by using forward and reverse engineering techniques. Activity Diagram portrays the control flow from a start point to a finishing point showing the various decision paths that exist while the activity is being executed Basic components of an activity diagram
Initial state: The starting state before an activity takes place is
depicted using the initial state. The start node is represented by a black circle.
Action or Activity State : A step in the activity wherein the
users or software perform a given task. An activity represents execution of an action on objects or by an objects. It indicates the activities that make up a modelled process. These symbols, which include short descriptions within the shape, are the main building blocks of an activity diagram Action Flows or Control Flows: Action Flows or Control Flows are also referred to as paths and edges. They are used to show the transition from one activity state to another. Connector symbol - Shows the directional flow, or control flow, of the activity. Joint symbol / Synchronization bar - Combines two concurrent activities and re-introduces them to a flow where only one activity occurs at a time. Represented with a thick vertical or horizontal line. Join nodes are used to support concurrent activities converging into one. For join notations ,we have two or more incoming edges and one outgoing edge Fork symbol - Splits a single activity flow into two concurrent activities. Symbolized with multiple arrowed lines from a join. Fork nodes are used to support concurrent activities. Decision symbol - Represents a decision and always has at least two paths branching out with condition text. A conditional branch in the flow that is represented by a diamond. It includes a single input and two or more outputs. Note symbol - Allows the diagram creators or collaborators to communicate additional messages that don't fit within the diagram itself. Leave notes for added clarity and specification. Send signal symbol - Indicates that a signal is being sent to a receiving activity Receive signal symbol - Demonstrates the acceptance of an event. After the event is received, the flow that comes from this action is completed. Flow final symbol - Represents the end of a specific process flow. This symbol shouldn’t represent the end of all flows in an activity. The flow final symbol should be placed at the end of a single activity flow. Condition text - Placed next to a decision marker to let you know under what condition an activity flow should split off in that direction End symbol - Marks the end state of an activity and represents the completion of all flows of a process. .The end node is represented by an outlined black circle. The state which the system reaches when a particular process or activity ends is known as a Final state or End state Swimlanes-we use swimlanes for grouping related activities in one column/one row. Swimlanes can be vertical or horizontal • They are used to add modularity to the activity diagram