Professional Documents
Culture Documents
Sandip M Vaniya
January 2, 2012
Outline
Traditional Approach Introduction of UML Use case diagram Sequence diagram Collaboration diagram Class diagram Component diagram Deployment diagram
UML and Rational Rose 2
January 2, 2012
Traditional Approach
Structure analysis (SA)
Data Flow Diagram (DFD)
January 2, 2012
Function symbol:
-It call as Function or bubble.
External Entity Symbol:Librarian, member Etc.it represent external entity who is Interact with system by inputting data Into system or consume outputting data.
January 2, 2012
January 2, 2012
Important concept
1. 2. 3. 4. 5. 6. Synchronization and ASynchronization. Data dictionary:-list all the data item appearing in DFD. Data definition:+:-denotes composition of two data item. [ , ,]:-denote selection. ( ):-denote optional data which may or may not appear. { }:-iterative data definition. =:-represent equivalence. /* represent Comment
January 2, 2012
Example of SC
UML
What is Visual Modeling? Developing object oriented software. Graphical notations Developers and customers view software system from a different perspective.
UML is a standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems.
January 2, 2012 UML and Rational Rose 8
Software Design
Use Case
Relationship between actors and use case and/or between the use cases.
--Use cases within rectangle providing functionality. --Relationship association is a solid line between actor & use cases.
January 2, 2012 UML and Rational Rose 10
Change PIN
Bank officer
Make Payment
Customer
View Balance
Credit System
Withdraw money
January 2, 2012
11
January 2, 2012
12
Activity Diagram
Show the flow of activities through the system. Describe the workflow behavior of a system. An activity diagram shows the flow of events within our system.
January 2, 2012
13
January 2, 2012
14
January 2, 2012
15
January 2, 2012
16
Swimlane Diagrams
January 2, 2012
17
Sequence Diagrams
Sequence diagram-Example
January 2, 2012
19
Joe : Custom er
1. Accept Card
readCardNo( )
InitializeScreen( )
prom ptPIN( )
Enter PIN no
openAccount( ) verifyPIN( )
January 2, 2012
20
Collaboration Diagrams
Collaboration Diagram
6: 6:Enter PIN(1234) 9: 9:Select Transaction(Withdraw) 11: 11:Enter Amount 13: 13:Verify Fund 14: 14:Deduct Fund ATM Screensd 7: 7:Verify the PIN 12: 12:Withdraw Fund
5: 5.Prompt for PIN 8: 8:Promt for Transaction 10: 10:Promt for Amount sandip : Customer
Sandip's Account
3: 3.Intialized Screen 4: 4.Open Account 1: 1.Accept Card 17: 17:Eject Card 2: 2. Read Card No 15: 15:Provide Cash 16: 16:Provide Receipt
January 2, 2012
Card Reader
Cash Dispacher
22
Class diagram
The class diagram is a static model that shows the classes and the relationships among classes in the system.
UML Class symbol has three parts: 1) Name 2) List of attributes 3) List of operations
January 2, 2012
24
Types of Attributes
Simple attributes contain single data item Identifiers connect unique key value Multi valued attributes contain multiple values simultaneously Composite attributes group of related attributes
January 2, 2012
26
January 2, 2012
27
January 2, 2012
28
Composite attributes have multiple sections (sub attributes). They are treated as separate classes in conceptual data models.
UML and Rational Rose 29
January 2, 2012
Operation
Actions or function that a class can perform in manipulating the attributes Example: insertInfo(), verifyPassword()
January 2, 2012
30
January 2, 2012
31
Overdrawn Open
Deposite( [Balance<0] )
Customer Request Closure check balance( balance <0 for >30 days )
NewState
January 2, 2012
32
Component Diagram
ATM.exe
ATM Screen
card reader
Cash Dispenser
ATM Screen
January 2, 2012
33
Deployment Diagrams
Oracle Server Banking Database Server
<<LAN>>
ATM Server.exe
Printer
<<Private Network>>
ATM Client.Exe
ATM Client.Exe
January 2, 2012
34
Summary
Use Case Diagram displays the relationship among actors and use cases. Class Diagram models class structure and contents using design elements such as classes, packages and objects. It also displays relationships such as containment, inheritance, associations and others. Interaction Diagrams Sequence Diagram displays the time sequence of the objects participating in the interaction. This consists of the vertical dimension (time) and horizontal dimension (different objects). Collaboration Diagram displays an interaction organized around the objects and their links to one another. Numbers are used to show the sequence of messages. State Diagram displays the sequences of states that an object of an interaction goes through during its life in response to received stimuli, together with its responses and actions.1 Activity Diagram displays a special state diagram where most of the states are action states and most of the transitions are triggered by completion of the actions in the source states. This diagram focuses on flows driven by internal processing. Physical Diagrams Component Diagram displays the high level packaged structure of the code itself. Dependencies among components are shown, including source code components, binary code components, and executable components. Some components exist at compile time, at link time, at run times well as at more than one time. Deployment Diagram displays the configuration of run-time processing elements and the software components, processes, and objects that live on them. Software component instances represent run-time manifestations of code units
January 2, 2012
35
Thank You
January 2, 2012
36