Download Enterprise Architect User Guide

Transcript
159
UML Elements | Structural Diagram Elements | Component
Toolbox Icon
OMG UML Specification
The OMG UML specification (UML Superstructure Specification, v2.1.1, p. 148) states:
A component represents a modular part of a system that encapsulates its contents and whose manifestation is
replaceable within its environment.
A component defines its behavior in terms of provided and required interfaces. As such, a component serves
as a type whose conformance is defined by these provided and required interfaces (encompassing both their
static as well as dynamic semantics).
2.2.6 Data Type
A Data Type is a specific kind of classifier, similar to a Class 152 except that a Data Type cannot own sub Data
Types, and instances of a Data Type are identified only by their value. For example, an instance of a Person
Class is a Helen object, but an instance of an Integer Data Type is 12.
All copies of an instance of a Data Type, and any instances of that Data Type with the same value, are
considered to be the same instance. That is, instances of Helen are not necessarily the same Helen, but all 12
s are the same 12. For example, the 12 on a watch face is exactly the same integer as the number of months
in a year.
Instances of a Data Type that have attributes (that is, are instances of a structured Data Type) are considered
to be the same if the structure is the same and the values of the corresponding attributes are the same. If a
Data Type has attributes, instances of that Data Type contain attribute values matching the attributes.
A typical use of Data Types would be to represent programming language primitive types or CORBA basic
types. For example, integer and string types are often treated as Data Types.
A Data Type is denoted by a rectangle with the keyword «dataType», as above or, when it is referenced by (for
example) an attribute, by a string containing the name of the Data Type, as below:
Toolbox Icon
UML Dictionary