Lab 5 Software Engineering By Nouran Radwan Activity Diagram 3 Activity diagrams Useful to specify software or hardware system behavior. Based on data flow models a graphical representation of how data move around an information system. Fill Order Ship Order Send Invoice Accept Payment Close Order Make Payment [order accepted] Invoice Receive Order [order reject] 1999 2005 M.E. Fayad SJSU CmpE --- M.E. Fayad 5 Notation Activity1() Activity2() 1. Activities 2. Transition Notation - 2 [x>0] [x=0] [x<0] Decision Diamond 1999 2005 M.E. Fayad SJSU CmpE --- M.E. Fayad Notation - 3 Start Marker Stop Marker A fork may have one incoming transitions and two or more outgoing transitions. Fork A join may have two or more incoming transitions and one outgoing transition Join Activity Diagram: Example A c t i v i t y
D i a g r a m :
E x a m p l e
Activity Diagram
State Machine Diagram They describe all of the possible states that a particular object can get into and how the object's state changes as a result of events that reach the object. In most OO techniques, state diagrams are drawn for a single class to show the lifetime behavior of a single object. An Employee state in a company: Employed, Fired, on Leave, Retired.
State Diagram State Diagram Illustrates the interesting events and states of an object and the behavior of an object in reaction to an event. Event: significant or noteworthy occurrence. State: the condition of an object at a moment in time (between events). Transition: a relationship between two states; when an event occurs, the object moves from the current state to a related state. State Diagram States shown as rounded rectangles. Transitions shown as arrows. Events shown as labels on transition arrows. Course Registration State Diagram Open Closed Completed Cancelled Registration ended Course cancelled End of Semester Start Stop State Diagram one Session ATM Machine Assignment Draw Activity Diagram and State Diagram (One Object) for your Information System.
Reference Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, Craig Larman.
Systems Analysis and Design with UML Version 2.0, An Object-Oriented Approach, Second Edition, Alan Dennis.