Chapter 5 : Package Diagram

2y ago
27 Views
3 Downloads
1.16 MB
10 Pages
Last View : 24d ago
Last Download : 3m ago
Upload by : Esmeralda Toy
Transcription

UML Tutorial for C - Windows PlatformGDPro 5.0Chapter 5: Package DiagramThe Package DiagramWhat is a Package Diagram This diagram is just a form of the class diagram Shows how classes can be divided into modules and high-level relationships between packages Can be a high level view of a system or a specific subsection of the overall modelWhen to use a Package Diagram Used strictly for logical modularization When the application is very large Usually done in the design phase of a projectAfter you have completed the step-by-step procedure outlined in the tutorial, your package diagramshould look similar to the following example.Note: The diagram shown above is for reference only. Use the instructions beginning on the nextpage to draw your Package diagram.Creating a Package Diagram from the Use Case DiagramThe package diagram is a type of class diagram and can be created from a use case diagram.1.Make sure the Use Case diagram called "Diagram One" is the current view.-1 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.02.Right-click in the background of the package (do not right-click on a use case symbol, a link, or thebackground of the diagram) and the Package background menu opens.3.Choose CREATE ASSOCIATED DIAGRAM- MANUAL- CLASS DIAGRAM. The Class DiagramCreation dialog box opens. This dialog box shows the diagram type (class), and the default diagramname (CLD #1 - Banking) . You can edit the diagram name but for purposes of the tutorial we willleave it CLD #1 - Banking. You can also edit the Description of the diagram.4.Click. The Class Diagram Name dialog box closes and Diagram Window opens with aClass Diagram labeled Banking. The Diagram Window is empty. However, please note that thediagram is labeled "CLD 1 - Banking" in the title bar.Note: The diagram you just created is now the active design model. When the Class diagram isactive, the icons representing its entire symbol set are displayed in the Diagram Window.Refer to topic "The Class Diagram Palette" for a full explanation of each icon.-2 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.0Placing the Package Symbols1.Double-click theicon is grayed out.symbol in the Class Diagram palette to place multiple package symbols. The2.Place three packages in the design area as illustrated below.3.The fourth package is drawn so that it includes the three other package symbols. Place the cursor inthe upper left corner of the design area. Click and drag the cursor to the lower right corner of thediagram and release the mouse button. A package is drawn and includes the three previously drawnpackages.4.Deselect the Package icon by clicking the cursor iconor by pressing the ESC key.located by the Use Case Diagram palette-3 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.0Labeling the Package Symbol1.Click on the package symbol containing the other three package symbols to select it.2.Click in the Tab portion of the package and the Tab pop-up editor opens.3.Enter "1" in the text box and press Enter. The pop-up editor closes and "Pkg. #1" appears in the Tabportion of the package.4.Click once inside the same package and the PackageIdentifier pop-up editor opens.5.Enter "Banking" in the PackageName text box and click anywhere outside the pop-up editor. AGDPro warning box opens telling you that a package with the name "Banking" already exists inanother diagram. This warning box asks if you want to reference the package in the other diagram.6.Click. The warning box closes and the package is labeled "Banking".-4 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.0Displaying Classes in PackagesKey: GDPro has a very specific and defined way of displaying classes in packages. Although it isnot applicable in this tutorial, important information is shown in this topic.CharacteristicsIf the class is in a diagram that is itself a member of a package, only the class name is displayed.If the class is a member of a package that is NOT the parent of the diagram, the class name and theword "{Imported}" is displayed.When you right-click on a class, the background menu now shows the package:class in thebackground menu header.Fully Scoped NamesWhen you right-click a symbol and select SYMBOL UTILITIES- FULLY SCOPED NAME, the pull-rightmenu shows the fully qualified name of the symbol type. The qualified name is the name used for-5 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.0implementation. This includes only the Namespace packages.For example the pull-right menu for the following package is as follows:Paste by ReferenceWhen you paste a symbol by reference the copy or "pasted" graphic shares the underlying symboldefinition with the first symbol drawn. Any changes or additions you make in a symbol are also reflectedin all the symbols pasted by reference.When you paste by reference there is not an "original" or "referenced" symbol. There is only the symbol,with 0 or more instances (graphics) displayed in the diagrams.The symbol created by paste by reference now appears on the Navigator tree.1.Click the Navigator tab located at the bottom of the System Hierarchy Window. The Navigatorwindow opens with the system "Tutorial Demo" showing.2.Click thelocated to the left of the system name Tutorial Demo. All the system symbols are listedbelow the system name.3.Click thelocated to the left of the Package label. The tree expands showing the package named"Banking".-6 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows Platform4.GDPro 5.0Double-click the Banking label located under "Package" and an additional dialog box opens listingeach instance of the symbol and its location.Note: You can select an instance of the symbol name in the list box and click. Thediagram where the selected symbol is located opens and the symbol appears in the center ofthe design area. The symbol is also selected.5.Clickto close the Select an Object dialog box.6.Click the Systems and Diagrams tab to return to the Systems and Diagrams System HierarchyWindow.-7 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.0Label the Remaining PackagesWe will use pop-up editors to label the remaining packages in the Package diagram.Tab Labels1.Select the package located in the top left corner that will be labeled "FederalReserve".2. Click the tab section of the package. The tab pop-up editor window opens.3.Enter the text "1.1" and press Enter. The Tab pop-up editor closes and the text "Pkg. #1.1" isentered in the tab portion of the package.4.Using the same procedure, label the "MemberInstitutions" tab as "1.2" and the "CommNet" tab as"1.3".Package Identifier1.Select the package located in the upper left corner that will be labeled "FederalReserve".2.Click unnamed in the center portion of the package. The PackageIdentifier pop-up editor opens.3.Enter the text "FederalReserve" and click anywhere outside the window. The PackageIdentifier popup editor closes and the text "FederalReserve" is entered in the center portion of the package.-8 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows Platform4.GDPro 5.0Using the same procedure outlined in steps 1-3, label the "MemberInstitutions" and "CommNet"packages.The Dependency LinksThe dependency link is a semantic relation between the source and target elements. It indicates thatwhen there is a change to the target element there may be a change necessary to the source element.You can label the dependency link and set the stereotype.1.Click the Dependency Linkin the Class Diagram palette.2.Click inside the Member Institutions class symbol. Drag the cursor until it connects with the bottom ofthe FederalReserve package, and click again. A valid link represented by a dotted line is drawn fromthe MemberInstitutions package to the FederalReserve package. Note that the link is automaticallysquared because Orthogonal Links is set as the default.3.Double-click the Dependency link. The Properties Editor for Dependency Link dialog box opens.4.Enter the text "Licensing Agency" in the Name text box.-9 2000 Advanced Software Technologies, Inc.

UML Tutorial for C - Windows PlatformGDPro 5.05.Select "import" from the Stereotype drop-down menu and clickand the link is labeled. The dialog box closes6.Repeat steps 1-5 to draw and label the link between MemberInstitutions and CommNet. The linklabel is "NetAccess" and the stereotype is "import".This completes the package diagram. In the next portion of the tutorial we will create a class diagramfrom the package diagram.-10 2000 Advanced Software Technologies, Inc.

Note: The diagram shown above is for reference only. Use the instructions beginning on the next page to draw your Package diagram. Creating a Package Diagram from the Use Case Diagram The package diagram is a type of class diagram and can be created from a use case diagram. 1. Make sure the Use Case diagram c

Related Documents:

WIRING DIAGRAM DIRECTORY WARNING: Wiring direct to battery not recommended. Install actuator after ignition switch, or master power switch. Diagram 1 Diagram 2 Diagram 3 Diagram 4 Diagram 5 Diagram 6 Diagram 7 Diagram 8 Diagram 9 Diagram 10 Diagram 11 Diagram 12 Diagram 13 Diagram 14 Diagram 15 On/Off, 12VDC, 3-wire/3-pin, SPST On/Off, 12VDC, 3 .

Part One: Heir of Ash Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 Chapter 28 Chapter 29 Chapter 30 .

TO KILL A MOCKINGBIRD. Contents Dedication Epigraph Part One Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Part Two Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18. Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26

DEDICATION PART ONE Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 PART TWO Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 .

Structured analysis Object-oriented analysis System boundary Context diagram Use case diagram Functionality Data flow diagram Activity diagram Interaction diagrams Data Entity-relationship diagram Class diagram Object diagram Control State diagram State diagram Structured methods System as a set of nested processes accessing system data.

Figure 2: A sequence diagram that has incoming and outgoing messages Notice that in Figure 2 the diagram's label begins with the letters "sd," for Sequence Diagram. When using a frame element to enclose a diagram, the diagram's label needs to follow the format of: Diagram Type Diagram Name UML basics: The sequence diagram Page 3 of 24 http .

Package style descriptive code LQFP (low profile quad flat package) Package body material type P (plastic) JEDEC package outline code MS-026 BCD Mounting method type S (surface mount) Issue date 25-01-2016 Manufacturer package code 98ASS23234W Table 1. Package summary Parameter Min Nom Max Unit package length 9.8 10 10.2 mm package width 9.8 10 .

MySQL. Use this link to run it. Main page PhpMyAdmin. The next option in main menu is explore (F8). We can directly access to folder www of the web server (Apache in this case), were html and php files must be located to run properly: Folder www.