• Tidak ada hasil yang ditemukan

Slide INF205 RPL Pertemuan 8

N/A
N/A
Protected

Academic year: 2017

Membagikan "Slide INF205 RPL Pertemuan 8"

Copied!
30
0
0

Teks penuh

(1)

   

UML: Unified Modeling

Language

Story:

What UML is for

Some of the main diagrams are and what you

use them for

Class diagrams and class formsUse Case Diagrams

Sequence (Event) DiagramState Diagrams

(2)

   

UML: Unified Modeling

Language

Developed by the “Three Amigos”: Grady

Booch, Jim Rumbaugh, Ivar Jacobson

Each had their own development methodologyMore or less emphasis on notation and process

UML is a notation and a process

Diagrams and notation from UML 1.3 Definition

(3)

   

Diagrams

Class diagrams: Represents static structureUse case diagrams: Sequence of actions a

system performs to yield an observable result to an actor

Sequence diagrams:Shows how groups of

objects interact in some behavior

State diagrams: Describes behavior of

(4)

   

Class Diagrams

Better name: “Static structure diagram”

Doesn’t describe temporal aspects

Doesn’t describe individual objects: Only the overall

structure of the system

There are “object diagrams” where the boxes represent instances

But rarely used—other diagrams serve the role of

describing object interaction better

When used, object diagrams describe static

(5)

   

(6)

   

Notation in Class Boxes

Abstract classes (and operations) in italics+ is public, - is private, # is protected

Can also specify stereotypes or

compartments

“constructors” or “query”

(7)

   

Other variations in Class

specifications

Use of

templates,

interfaces, and types

Can even

(8)

   

Components of Class

Diagrams

Multiplicities

How many of

each?

Labels to

indicate how reference is viewed

Role and

(9)

   

Navigability and

Aggregations

Navigability

Who owns/contains/has who?Arrows not strictly required

Aggregation: Open diamond

“Part-of” relationship, but disagreement

Composition:

closed diamond

Part can only

(10)

   

Qualifiers

Serves to describe an instance variable

(11)

   

Use Case Diagrams

Means of capturing requirements

Document interactions between user(s)

and the system

User (actor) is not part of the system itselfBut an actor can be another system

An individual use case represents a task to

(12)

   

Simple Use Case Diagram

Reserve book

Reserve book

Borrow book

Borrow book

Return book

(13)

   

(14)

   

Use Cases

Are actually defined as text, including

descriptions of all of the normal and exception behavior expected

Do not reveal the structure of the systemCollectively define the boundaries of the

system to be implemented

Provide the basis for defining

(15)

   

(16)

   

Sequence (Event) Diagrams

Shows individual objects and how they

interact

Describes

Lifelines of objects

Who sends what messages when

Can also describe sending messages to self

("self-delegation")

(17)

   

(18)

   

State Diagrams

Describe all the possible states a

particular object can get into, and the events that lead to those changes

(19)

   

(20)

   

Other Kinds of UML Diagrams

Collaboration Diagrams

An alternative to sequence diagrams for

(21)

   

Other kinds of UML Diagrams

Activity Diagrams

Alternative to

(22)

   

Other kinds of UML Diagrams

Implementation

Diagrams

Down at the detail

level

What piece of code

goes where?

How are they

(23)

   

UML in Real Practice

You don't typically use all the diagrams

You'll choose between them based on preference and

particular situation

You typically use many diagrams

A single use case may not capture all scenarios

If you are going to use statecharts, there are probably

lots of objects with states

Each sequence/collaboration diagram only shows one

(24)

   

Example: Student Registration

System

Not going to do all the diagrams

Not all types, not even all that completely

specify the system

But this is an application you know, so the

(25)

   

Student Registration Class Diagram

*

removeStudent ** 1

*

* sectionssections

(26)

   

Partial Use Case Diagram

Withdraw from a Course

Apply for Admission

Student

Enroll in the University

Enroll in a Course

(27)

   

States of a Student

EnrollInClass ( Add  a Transcript )

Enrolled

Apply [ Must be accepted first ]

Graduate [ All courses must be completed ] AddCourse

Registered

(28)

   

Sequence Diagram: Registering

for Course

theRegistrar aSection theTranscript

aStudent

state of prereq have prereq

enrolled

enrollInSection:

return sections

getSectionsFor:

addStudent:

enrolled

takenCourse: prerequisite

(29)

   

Process to Representations

OOA

CRC Cards (but they’re not officially UML)

Use Cases

OOD

Just about all of the rest

But variations—some detail is later

OOP

(30)

   

UML v1.3 Copyright Notice

Copyright © 1997, 1998, 1999 Object Management Group, Inc. Copyright © 1997, 1998, 1999 Hewlett-Packard Company Copyright © 1997, 1998, 1999 IBM Corporation

Copyright © 1997, 1998, 1999 ICON Computing Copyright © 1997, 1998, 1999 i-Logix

Copyright © 1997, 1998, 1999 IntelliCorp

Copyright © 1997, 1998, 1999 Electronic Data Services Corporation Copyright © 1997, 1998, 1999 Microsoft Corporation

Copyright © 1997, 1998, 1999 ObjecTime Limited Copyright © 1997, 1998, 1999 Oracle Corporation

Copyright © 1997, 1998, 1999 Platinum Technology, Inc. Copyright © 1997, 1998, 1999 Ptech Inc.

Copyright © 1997, 1998, 1999 Rational Software Corporation Copyright © 1997, 1998, 1999 Reich Technologies

Copyright © 1997, 1998, 1999 Softeam

Copyright © 1997, 1998, 1999 Sterling Software Copyright © 1997, 1998, 1999 Taskon A/S

Referensi

Dokumen terkait

simpan air yang cukup tinggi dimana air lebih tidak segera keluar akan tetapi akan tetap menjenuhi tanah pada daerah perakaran dalam jangka waktu yang lama, hal ini ditunjukkan

Sejauh pengamatan peneliti, penelitian mengenai perbedaan adversity quotient pada mahasiswa yang mengikuti Objective Structured Clinical Skills (OSCE) berdasarkan motivasi

Perspektif keuangan, pelanggan dan sasaran dari proses bisnis internal dapat mengungkapkan kesenjangan antara kemampuan yang ada dari orang, sistem dan prosedur

(6) Pendidikan Profesi Guru (PPG) sebagaimana dimaksud ayat (1) adalah program pendidikan yang diselenggarakan untuk mempersiapkan lulusan S1 kependidikan dan S1/D4

Untuk membantu seseorang berjuang dalam mencapai satu tujuan yang diinginkan diperlukan self-efficacy, dengan keyakinan diri yang kuat akan membuat mereka melakukan

Memang bukan hal yang mudah bagi ibu dalam melakukan pembiasaan-pembiasaan yang baik pada anak dalam melakukan segala aktivitasnya sendiri terutama pada anak usia

Penelitian ini bertujuan untuk memperoleh gambaran arti dan makna pengalaman kepala ruang dalam mengelola ruang rawat inap di RSUD Ambarawa yakni teridentifikasi : gambaran

Aktivitas mental siswa yang terdiri dari aktivitas siswa bertanya sebesar 37,5%, siswa menjawab pertanyaan sebesar 50%, siswa mengemukakan pendapat sebesar 37,5%, siswa