Unified Modeling Language User Guide Section 3Advanced Structural

  • Slides: 11
Download presentation
Unified Modeling Language User Guide Section 3—Advanced Structural Modeling Chapter 12—Packages

Unified Modeling Language User Guide Section 3—Advanced Structural Modeling Chapter 12—Packages

Overview • Packages – Visibility – Importing – Exporting – Standard Elements • Modeling

Overview • Packages – Visibility – Importing – Exporting – Standard Elements • Modeling groups of elements Sung Kim CS 6359 Chapter 12 Slide 2

Packages • Package—general-purpose mechanism for organizing elements into groups. • Names – Simple name—textual

Packages • Package—general-purpose mechanism for organizing elements into groups. • Names – Simple name—textual string distinguishing/ yang membedakan one package from others. – Path name—simple name prefixed/ menaruh by any enclosing/menyertakan package. Sung Kim CS 6359 Chapter 12 Slide 3

Packages Depicted/ menggambarkan Client simple names Business rules + Order. Form + Tracking. Form

Packages Depicted/ menggambarkan Client simple names Business rules + Order. Form + Tracking. Form - Order extended packages enclosing package name Sensors: : Vision { version = 2. 24 } Sung Kim CS 6359 Chapter 12 path names Slide 4

Owned Elements • Composite relationship • Destroyed if enclosing package is destroyed graphical nesting

Owned Elements • Composite relationship • Destroyed if enclosing package is destroyed graphical nesting visibility Client + Order. Form + Tracking. Form - Order Client +Order. Form -Order textual nesting +Tracking. Form Sung Kim CS 6359 Chapter 12 Slide 5

Visibility • You can control the visibility of the elements owned by a package

Visibility • You can control the visibility of the elements owned by a package just as you can control the visibility of the attributes and operations owned by a class. • Packages that are friends to another may see all the elements of that package, no matter what their visibility. • If an element is visible within/dalam a package, it is visible within all packages nested inside the package. Sung Kim CS 6359 Chapter 12 Slide 6

Importing & Exporting • Importing – Grants/memberi a one-way permission for elements in one

Importing & Exporting • Importing – Grants/memberi a one-way permission for elements in one package to access the elements in another package. – Dependency with stereotype <<import>> • Exporting – Public parts of a package. Sung Kim CS 6359 Chapter 12 Slide 7

Importing & Exporting Depicted Sung Kim CS 6359 Chapter 12 Slide 8

Importing & Exporting Depicted Sung Kim CS 6359 Chapter 12 Slide 8

Standard Elements • facade—only a view on some other package. • framework—package consisting mainly

Standard Elements • facade—only a view on some other package. • framework—package consisting mainly of patterns. • stub—a package that serves as a proxy for the public contents of another package. • subsystem—a package representing an independent part of the system being modeled. • system—a package representing the entire system being modeled. Sung Kim CS 6359 Chapter 12 Slide 9

Modeling Groups of Elements (steps) • Look for “clumps”/rumpun of elements that are semantically/yg

Modeling Groups of Elements (steps) • Look for “clumps”/rumpun of elements that are semantically/yg berhub close to one another. • Surround “clumps” with a package. • Identify public elements of each package. • Identify import dependencies. Sung Kim CS 6359 Chapter 12 Slide 10

Summary • • • Packages Owned Elements Visibility Importing & exporting Standard package elements

Summary • • • Packages Owned Elements Visibility Importing & exporting Standard package elements Modeling groups of elements Sung Kim CS 6359 Chapter 12 Slide 11