Similar presentations:
Визуальное моделирование и UML в Rose. (Тема 1)
1.
Тема 1: Визуальное моделирование и UML2. Where Are We?
What is visual modeling?What is the UML?
UML diagrams
Extending UML notation
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
2
3. What Is Visual Modeling?
Order“Modeling captures essential
parts of the system.”
Dr. James Rumbaugh
Item
Ship via
Business Process
Visual Modeling is
modeling using standard
graphical notations
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
3
Computer System
4. Visual Modeling Captures Business Processes
Use-case analysis is a technique to capturebusiness processes from a user’s perspective.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
4
5. Visual Modeling Is a Communication Tool
Use visual modeling to capture business objects and logic.Use visual modeling to analyze and design your application.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
5
6. Visual Modeling Manages Complexity
Fundamentals of Rational RoseCopyright © 2000, 2002 Rational Software, all rights reserved
6
7. Visual Modeling Promotes Reuse
Multiple SystemsReusable
Components
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
7
8. Where Are We?
What is visual modeling?What is the UML?
UML diagrams
Extending UML notation
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
8
9. What Is the Unified Modeling Language?
The UML is the standard language forvisualizing, specifying, constructing, and
documenting the artifacts of a softwareintensive system.
The UML combines the best from
Data modeling
Business modeling
Object modeling
Component modeling
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
9
10. History of the UML
UML 2.0Planned major revision (2001)
UML 1.4
Planned minor revision (2000)
UML 1.3
Current minor revision 1999
Public
Feedback
OMG Acceptance, Nov 1997
Final submission to OMG, Sept 1997
First submission to OMG, Jan 1997
UML partners
UML 1.1
UML 1.0
Web - June 1996
OOPSLA 95
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
10
11. UML Concepts
The UML may be used to visually modelThe interaction of your application with the
outside world.
The behavior of your application.
The structure of your system.
The architecture of your enterprise.
The components in your system.
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
11
12. Where Are We?
What is visual modeling?What is the UML?
UML diagrams
Extending UML notation
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
12
13. Use-Case Diagram
A use-case diagram is created to visualizethe interaction of your system with the
outside world.
Request Course Roster
Professor
Student
Register for Courses
Billing System
Maintain Course Information
Registrar
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
13
14. Activity Diagram
An activity diagram shows the flow ofevents within our
system.
Create
curriculum
Select courses
to teach
Create
catalog
Place catalog
in bookstore
Mail catalog
to students
Open
registration
[ Registration time period expired ]
Close
registration
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
14
15. Sequence Diagram
A sequence diagram shows step by stepwhat must happen to accomplish a piece of
functionality provided by the system.
: Student
registration
form
registration
manager
math 101
math 101
section 1
1: fill in info
2: submit
3: add Joe to Math 101
4: add Joe
5: are you open?
6: add Joe
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
15
16. Collaboration Diagram
A collaboration diagram displays objectinteractions organized around objects and
their links to one another.
course form :
CourseForm
1: set course info
2: process
3: add course
: Registrar
theManager :
CurriculumManager
aCourse :
Course
4: new course
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
16
17. Class Diagram
A class diagram shows the structure of yoursoftware.
ScheduleAlgorithm
RegistrationForm
0..*
1 RegistrationManager
addStudent(Course, Student)
1
RegistrationUser
name
Student
Course
name
0..* numberCredits
open()
addStudent(StudentInfo)
major
1
3..10
1..*
4 CourseOffering
location
0..4
Professor
tenureStatus
1
open()
addStudent(Student)
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
17
18. Statechart Diagram
A statechart diagram shows the lifecycle ofa single class.
Add student[ count < 10 ]
Initialization
Add Student /
Set count = 0
do: Initialize course
Open
entry: Register student
exit: Increment count
Cancel
Cancel
[ count = 10 ]
Canceled
do: Notify registered
students
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
Cancel
18
Closed
do: Finalize course
19. Component Diagram
A component diagram illustrates theorganization and dependencies among
software components.
Register.exe
Billing.exe
Billing
System
People.dll
User
Course.dll
Course
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
19
20. Deployment Diagram
A deployment diagram visualizes thedistribution of components across the
enterprise.
Registration
Database
Main
Building
Library
Dorm
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
20
21. Where Are We?
What is visual modeling?What is the UML?
UML diagrams
Extending UML notation
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
21
22. Extending the UML
Stereotypes can be used to extend the UMLnotational elements.
Stereotypes may be used to classify and
extend associations, inheritance
relationships, classes, and components.
Examples
Class stereotypes: interface, exception, server
page
Association stereotypes: identifying, nonidentifying
Dependency stereotypes: include, extend
Component stereotypes: subsystem
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
22
23. Review
1. Name two benefits of visualmodeling.
2. What is the UML?
3. Name three UML diagrams.
4. What are stereotypes?
Fundamentals of Rational Rose
Copyright © 2000, 2002 Rational Software, all rights reserved
23