DOC PREVIEW
AUBURN COMP 7700 - The Unified Modeling Language

This preview shows page 1-2-17-18-19-35-36 out of 36 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 36 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

COMP 7700 – Unified Modeling Language1Chapter 3The Unified Modeling LanguageCOMP 7700 – Unified Modeling Language2Process Phase Affected by This ChapterRequirementsAnalysisDesignImplementationArchitectureFramework Detailed DesignAdapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language3Classes at Detailed DesignResponsibilities:-- describes each canister undergoing fabrication+ display()- getNumOpenSlots()+ setStatus()+ numCanisters: int - numWafers: int- size: floatCanisterClass nameAttribute: typeOperationsPlace for comments+:Visiblefrom withoutwafercanisterAdapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language4Key Concept: Representing a Class in UML UML represents a class with a rectanglecontaining the class name.We display additional information within therectangle as needed: Variables, methods, etc.Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language5package of classesabstract classpackage MyPackage;abstract class MyAbstractClass . . . .package MyPackage;class MyDerivedClass extends MyAbstractClass{ int att; . . . . . void myFunction( ReferencedClass r ) { . .. }}MyDerivedClassatt: intmyFunction()UML Notation … and … Typical ImplementationMyPackageattributeoperationinheritanceMyAbstractClassAdapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language6interfaceinterface MyAbstractClass . . . .class MyClass implements MyInterface{ . . . . .}MyClassmyMethod()InterfacesUML Notation …… Typical Java ImplementationrealizationMyInterfacemyMethod()Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language7Key Concept:  Representing Inheritance in UML UML represents inheritance and interface realizationwith an open triangle.Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language8class MyClass{ MyAggregatedClass ac; int att; . . . . .}MyClassatt: intmyFunction()MyAggregatedClassacaggregationAggregation : UML Notation and TypicalImplementation1accompositionComposed object exists only in the scope of owner object Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language9Key Concept: Representing Aggregation in UML Class A aggregates class B if A objects require Bobjects in a structural sense – typically with aninstance variable.UML symbol is an open diamond.Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language10class MyDependentClass{ . . . . . void myFunction1( MyReferencedClass r ) { . .. } MyReferencedClass myFunction2( … ) { . .. } void myFunction3( … ) { MyReferencedClass m … }} MyDependentClassatt: intmyFunction()MyReferencedClassDependence : UML Notation … and …Typical Implementationdependence(reference to a class)parameteror return typeor local variable typeAdapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language11Key Concept: Representing Dependency Class A depends on class B if A objects requireB objects for their definition.In practice, this means that B appears in at leastone method of A. UML representation: a dottedarrow.Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language12class Employer{ Employee[ ] employees; . . . . .}class Employee{ Employer[ ] employers; . . . . .}Employer EmployeeAssociation : UML Notation and TypicalImplementation1..n1..3employsis employed byAdapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language13Customer Mail ApplicationCustomerMailApplicationgenerateMail()getCustomerTypeFromUser()main()CustomercreateMail()DelinquentCustomercreateMail()MountainCustomercreateMail()RegularCustomercreateMail()customer 1Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language14Key Concept:  Use Cases -- a sequence of actions takenby an application and its user.The user takes one role.Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language15Use Cases ForVideo StoreApplicationclerkCheck inCheck out1. . . . .Activate1. Actor hits any key.2. Application displays mainmenu. …stockerAdd video1. …. . . . . . . . .Precondition: Application hasbeen activated1. Actor clicks “check out.”2. Actor swipes bar code.3. Application prompts forrental duration.4. Actor enters duration.5. Application stores record.6. Application printscustomer’s account status.Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language16DispatcherWarehouseworkerUse CaseGeneralization& UsageA. Application displays main optionsB. User selects iconControlApplicationPerform warehouse transactionModify Stock«extends»«uses»A. Application displays main options1. User moves cursor to stock iconB. User selects icon2. Application displays stock window(i). Application displays logo(ii). “Perform warehouseTransaction” use case.(iii) Application displaysfarewell screen(iv) Application shuts downAdapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with permission.COMP 7700 – Unified Modeling Language17Beginning of Sequence Diagram for Check Out Use CaseClerk:BarCodeReader:Checkoutinitiate()show():CheckoutOptionDisplay}Step 2 of use caseNote 1orderNote 3doCheckout():MainScreenread()Note 2{Step 3 ofuse caseNote 0Adapted from Software Design: From Programming to Architecture by Eric J. Braude (Wiley 2003), with


View Full Document

AUBURN COMP 7700 - The Unified Modeling Language

Download The Unified Modeling Language
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view The Unified Modeling Language and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view The Unified Modeling Language 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?