14
The UML Notations Networking LAB OOSD 담담담담 담담담담 담담담 Kyung Hee University

The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Embed Size (px)

DESCRIPTION

Supplementation About Before Class How to represent ‘ static ’ Kyung Hee University

Citation preview

Page 1: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

The UML Notations

Networking LAB

OOSD 담당조교석사과정 이정환

Kyung Hee University

Page 2: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Contents Supplementation about before

class Relationships

Kyung Hee University

Page 3: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Supplementation About Before Class How to represent ‘static’

Kyung Hee University

Page 4: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Supplementation About Before Class (cont’d) How to using a code generation

Setting Directory

Kyung Hee University

Page 5: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Supplementation About Before Class (cont’d)

Kyung Hee University

Select class diagram icon Click right button of mouse Then select ‘code generation’

Page 6: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Supplementation About Before Class (cont’d) Forward engineering

Process that model corresponds to implementation language and move to code

Can make a lose of information because UML has more semantic meaning than today object-oriented language that is why model needs in development with code separately

Kyung Hee University

Page 7: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Supplementation About Before Class (cont’d) Reverse engineering

Process that corresponds to specific implementation language and move to model

Can make many information inflow

Kyung Hee University

Page 8: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Relationships Dependency

The symbol used by UML for general types of relationship between model and elements

The precise nature of the relationship is clarified by a label attached to the dependency, known as a stereotype

Kyung Hee University

Page 9: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Relationships (cont’d) Association

Structural relation, and set of link Link is a connection between object Aggregation ( 집합연관 )

Structural relation between whole and part Have a direction and label (multiplicity and

role)

Kyung Hee University

Page 10: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Relationships (cont’d) Generalization

Relationship between specialization and generalization

Parent and child

Kyung Hee University

Page 11: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Relationships (cont’d) Realize

Semantic relationship between classifier

Specification contact between classifier

Kyung Hee University

Page 12: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Practice time Reverse engineering exam

Kyung Hee University

Page 13: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Practice time (cont’d) import java.awt.*; public class GUI_intro { public static void main(String[]

args) { Frame f; f = new Frame("Hello!"); f.setSize(100, 100); f.setVisible(true); System.out.println("Hello World!"); } }

Kyung Hee University

Page 14: The UML Notations Networking LAB OOSD 담당조교 석사과정 이정환 Kyung Hee University

Kyung Hee University