Академический Документы
Профессиональный Документы
Культура Документы
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
Sequence Diagrams
Collaboration Diagrams
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
Sequence Diagrams
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
: Student
: : RegistrationController CourseCatalogSystem
: Course Catalog
1: // create schedule( ) 2: // get course offerings( ) 3: // get course offerings(forSemester) 4: // get course offerings( ) 5: // display course offerings( )
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
Unnamed Objects
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
:
RegistrationController
: Course Catalog
Actors
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
10
:
RegistrationController
: Course Catalog
1: // create schedule( ) 2: // get course offerings( ) 3: // get course offerings(forSemester) 4: // get course offerings( ) 5: / /display course offerings( )
Reflexive Messages
Message
6: // display blank schedule( )
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
11
:
RegistrationController
: Course Catalog
1: // create schedule( ) 2: // get course offerings( ) 3: // get course offerings(forSemester) 4: // get course offerings( ) 5: / /display course offerings( )
Focus of Control
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
12
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
13
Collaboration Diagrams
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
14
1: // create schedule( )
: Student
: RegistrationController
: CourseCatalogSystem
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
15
: RegisterForCoursesForm
Objects
: RegistrationController
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
16
: Student
: RegisterForCoursesForm
: Course Catalog
: RegistrationController
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
17
1: // create schedule( )
: Student
: RegistrationController
: CourseCatalogSystem
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
18
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
19
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
20
Sequence diagrams
Show the explicit sequence of messages Better for visualizing overall flow Better for real-time specifications and for complex scenarios
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
21
Checkpoints
What is the purpose of an interaction diagram? What is a sequence diagram? A collaboration diagram? What are the similarities between sequence and collaboration diagrams? What are the differences between sequence and collaboration diagrams?
<Course Title and Version Number> Copyright 2000 Rational Software, all rights reserved
22