Components
Components
Components
COMPONENTS
• Used in modeling the physical things that may reside on a node, such as executables, libraries,
tables, files and documents.
• A component physically represents the physical packaging of logical elements such as classes,
interfaces, and collaborations.
• You may specify an interface for a class in a logical model and that same interface will carry over
to some physical component that realizes it.
Names
Components and Classes:
In many ways components are like classes i.e.
• Classes may have attributes and operations directly, where as components can not have
attributes but can have operations
• In general components only have operations that are reachable only through their interfaces.
• If the things you are modeling lives directly on a node, use a component, otherwise use a class.
• component is a physical implementation of a set of other logical elements , such as classes and
collaborations.
• we can show the relationship between a component and its interfaces in one of two ways.
1. most common style renders the interface in its elided , iconic form.
BINARY REPLACEABILITY:
• You can create a system out of components and then evolve that system by adding new
components and replacing old ones, without rebuilding the system.
1. Component is physical.
2. A component is replaceable.
KINDS OF COMPONENTS :
3- kinds of components:
1. Deployment components: components necessary and sufficient to form an executable system, such
as dynamic libraries(DLL) and executables(EXE).
2. Work product components: These components are essentially the residue of the development
process, consisting of things such as source code files and data files
3. Execution Components: These are created as a consequence of an executing system such as a COM+
object, which is instantiated from DLL.
ORGANIZING COMPONENTS:
* dependency
• generalization
• Association
• aggregation
• realization relationships
Standard Elements:
• All UML extensibility mechanisms(stereo types, tagged values, constraints) apply to components.
4. File: Specifies a component that represents a document containing source code or data.