0% found this document useful (0 votes)
1K views48 pages

Basic Structural Modeling

This document discusses basic structural modeling in UML. It explains that structural modeling captures the static features of a system using class diagrams, object diagrams, deployment diagrams, package diagrams, and component diagrams. It also describes common modeling techniques like modeling the vocabulary, responsibilities, and primitive types of a system. The document outlines key structural modeling concepts like classes, attributes, operations, relationships, dependencies, generalizations, associations, and aggregation. It also discusses common modeling mechanisms like notes, stereotypes, tagged values, and constraints.

Uploaded by

Yash Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views48 pages

Basic Structural Modeling

This document discusses basic structural modeling in UML. It explains that structural modeling captures the static features of a system using class diagrams, object diagrams, deployment diagrams, package diagrams, and component diagrams. It also describes common modeling techniques like modeling the vocabulary, responsibilities, and primitive types of a system. The document outlines key structural modeling concepts like classes, attributes, operations, relationships, dependencies, generalizations, associations, and aggregation. It also discusses common modeling mechanisms like notes, stereotypes, tagged values, and constraints.

Uploaded by

Yash Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 48

Basic Structural Modeling

The material that will be discussed is covered by

Booch G., Rumbaugh J. & Jacobsons I., "The Unified Modeling Language User
Guide", Addison Wesley, 2002. [Part-2]
Bahrami A., "Object Oriented System Development", McGraw Hill, 2003.
Structural Modeling
• captures the static features of a system
• Consist of
• Classes diagrams
• Objects diagrams
• Deployment diagrams
• Package diagrams
• Composite structure diagram
• Component diagram
Structural Modeling …
• represents the framework
• framework - where all other components exist
• class diagram, component diagram and deployment diagrams - part of
structural modeling
• represent the elements and the mechanism to assemble them
• never describes the dynamic behavior of the system
• Class diagram is the most widely used structural diagram.
Classes
• Names
• Attributes
• Operations
• Organizing Attributes and Operations
• Responsibilities
Class
Names
Attributes
Operation
Organizing Attributes and Operations
Responsibility
Classes
Common modeling techniques

• Modeling the vocabulary of the system


• Modeling the distribution of responsibilities in a system
• Modeling Nonsoftware things
• Modeling Primitive Types
Modeling the vocabulary of the system
Modeling Primitive Types
Relationship
• Dependencies
• Generalizations
• Associations
• Name
• Role
• Multiplicity
• Aggregation
Relationship
• A relationship is a connection among things.
• In object-oriented modeling, the three most important relationships
are
• dependencies, generalizations, and associations.
• Graphically, a relationship is rendered as a path, with different kinds
of lines used to distinguish the kinds of relationships.
Dependencies
Generalizations
Name of an Association
Roles of an association
Defining multiplicity in an association
Aggregation
Relationship
Common Modeling Techniques

• Modeling Simple Dependencies


• Modeling Single Inheritance
• Modeling structural relationships
Modeling Simple Dependencies
Modeling Single Inheritance
Relationship
Common Mechanisms
• Notes
• Stereotypes
• Tagged values
• Constraints
Notes
Stereotypes
Stereotypes
tagged values
• A tagged value is a property of a stereotype, allowing
you to create new information in an element bearing
that stereotype.

• Graphically, a tagged value is rendered as a string of


the form name = value
tagged values

• With stereotypes, you can add new things to the UML;


with tagged values, you can add new properties to a
stereotype.
tagged values
Constraint
• drawn as a string enclosed in {brackets}
• can be put in a note

• With constraints, you can add new rules or extend/


modify existing rules.

• A constraint specifies conditions - run-time


configuration must satisfy
Constraint
Common Mechanisms
Common Modeling Techniques

• Modeling Comments
• Modeling New Building Block with Standard Blocks and Stereotypes
• Modeling New Properties for a UML element
• Using stereotypes, and tagged values
• Modeling New Semantics for a UML element using constraints
Modeling Comments
Diagrams
• Structural Diagrams
• Behavioral Diagrams
Common Mechanisms
Common Modeling Techniques

• Modeling different views of a system


• Modeling Different Levels of Abstraction
Thank You!

You might also like