Upload
emil-conley
View
215
Download
0
Embed Size (px)
DESCRIPTION
Supplementation About Before Class How to represent ‘ static ’ Kyung Hee University
Citation preview
The UML Notations
Networking LAB
OOSD 담당조교석사과정 이정환
Kyung Hee University
Contents Supplementation about before
class Relationships
Kyung Hee University
Supplementation About Before Class How to represent ‘static’
Kyung Hee University
Supplementation About Before Class (cont’d) How to using a code generation
Setting Directory
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’
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
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
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
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
Relationships (cont’d) Generalization
Relationship between specialization and generalization
Parent and child
Kyung Hee University
Relationships (cont’d) Realize
Semantic relationship between classifier
Specification contact between classifier
Kyung Hee University
Practice time Reverse engineering exam
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
Kyung Hee University