380 likes | 808 Views
UML Class Diagram. ICS 125, Spring 2002. The class icon. Defines Persistent system state System behavior The class icon has Name Attributes Operations It’s a rectangle divided into three compartments. Steps followed. Draw class symbol in the editor and name it
E N D
UML Class Diagram ICS 125, Spring 2002
The class icon • Defines • Persistent system state • System behavior • The class icon has • Name • Attributes • Operations • It’s a rectangle divided into three compartments.
Steps followed • Draw class symbol in the editor and name it • List the class attributes • List the class operations/methods • Make the links and associations • Give notations
Structural Modeling: Core Elements Reference: OMG tutorial on UML by Cris Kobryn
Structural Modeling: Core Elements(cont’d) ¹ An extension mechanism useful for specifying structural elements. Reference: OMG tutorial on UML by Cris Kobryn
Structural Modeling: Core Relationships Reference: OMG tutorial on UML by Cris Kobryn
Structural Modeling: Core Relationships(cont’d) Reference: OMG tutorial on UML by Cris Kobryn
Interfaces: Longhand Notation Fig. 3-29, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Associations Fig. 3-40, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Composition Fig. 3-45, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Generalization Fig. 3-47, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Dependencies Fig. 3-50, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Example UML Class Diagram Reference: www.smartdraw.com
Example tools • Argo UML • http://argouml.tigris.org • Object Domain • http://www.objectdomain.com/domain/evaluationIntro.html • Rational Rose • www.rational.com • Microsoft Visio
References • www.objectmentor.com • www.smartdraw.com • www.gdpro.com • www.objectdomain.com • www.rational.com • http://cgi.omg.org/cgi-bin/doc?omg/2001-03-02
The class icon • Defines • Persistent system state • System behavior • The class icon has • Name • Attributes • Operations • It’s a rectangle divided into three compartments.
Steps followed • Draw class symbol in the editor and name it • List the class attributes • List the class operations/methods • Make the links and associations • Give notations
Structural Modeling: Core Elements Reference: OMG tutorial on UML by Cris Kobryn
Structural Modeling: Core Elements(cont’d) ¹ An extension mechanism useful for specifying structural elements. Reference: OMG tutorial on UML by Cris Kobryn
Structural Modeling: Core Relationships Reference: OMG tutorial on UML by Cris Kobryn
Structural Modeling: Core Relationships(cont’d) Reference: OMG tutorial on UML by Cris Kobryn
Interfaces: Longhand Notation Fig. 3-29, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Associations Fig. 3-40, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Composition Fig. 3-45, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Generalization Fig. 3-47, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Dependencies Fig. 3-50, UML Notation Guide Reference: OMG tutorial on UML by Cris Kobryn
Example UML Class Diagram Reference: www.smartdraw.com
Example tools • Argo UML • http://argouml.tigris.org • Object Domain • http://www.objectdomain.com/domain/evaluationIntro.html • Rational Rose • www.rational.com • Microsoft Visio
References • www.objectmentor.com • www.smartdraw.com • www.gdpro.com • www.objectdomain.com • www.rational.com • http://cgi.omg.org/cgi-bin/doc?omg/2001-03-02