12.07.2015 Views

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

DEV475 Mastering Object-Oriented Analysis and Design with UML ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Module 6 - Use-Case <strong>Analysis</strong>Example: VOPC: Finding RelationshipsExample: VOPC: Finding RelationshipsRegisterForCoursesForm1 1RegistrationController0..1Student1currentSchedule0..*Schedule0..10..*primaryCourses0..4CourseOffering<strong>Mastering</strong> <strong>Object</strong> <strong>Oriented</strong> <strong>Analysis</strong> <strong>and</strong> <strong>Design</strong> <strong>with</strong> <strong>UML</strong>Copyright © 2003 Rational Software, all rights reserved 51The diagram on this slide shows classes that collaborate to perform the “Register forCourses” use case, along <strong>with</strong> their relationships. As noted earlier, this type ofdiagram is called a View of Participating Classes (VOPC) diagram.The relationships in this diagram are defined using the Interaction diagrams for theRegister for Courses use case provided earlier in this module.Rationale for relationships:• From RegisterForCoursesForm to RegistrationController: There is one controllerfor each Schedule being created (for example, each Student registration session).• From RegistrationController to Schedule. A RegistrationController deals <strong>with</strong> oneSchedule at a time (the current Schedule for the Student registering for courses).Note the use of the “currentSchedule” role name. Note: ManyRegisterForCoursesForms can be active at one time (for differentsessions/students), each <strong>with</strong> their own RegistrationController.• From Schedule to CourseOffering: Each Schedule may have up to four primaryCourse Offerings <strong>and</strong> up to two alternate Course Offerings. A particular CourseOffering may appear on many Schedules as either a primary or an alternate.• From Student to Schedule: A Student may have many schedules or none. ASchedule is only associated <strong>with</strong> a single Student <strong>and</strong> does not exist <strong>with</strong>out aStudent to be associated to.6 - 51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!