Professional Documents
Culture Documents
html
Package
Interface
Component
ComponentInstance
Artifact
Port
Part
Association
Dependency
Realization
Link
Connector
Package
Semantics
A package is a grouping of model elements. Packages themselves may be nested within other packages. A package
may contain subordinate packages as well as other kinds of model elements. All kinds of UML model elements can
be organized into packages.
2. Click at the position where Package will be placed in the [main window].
1 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
Interface
2. Click at the position where Interface will be placed in the [main window].
2 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
Component
Semantics
A component represents a modular, deployable, and replaceable part of a system that encapsulates implementation
and exposes a set of interfaces.
2. Click at the position where Component will be placed in the [main window]. And at the quick dialog, enter
component name and press [Enter] key. The result is as follows.
3 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
3. At the [Residents] tab of the [collection editor], you can add resident element by using button.
4 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
5 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
6 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
1. Double-click class. At the quick dialog, enter "-@" staring and interface name, separate interface names by
"," character.
2. And press [Enter] key. Several interfaces provided by selected class is created and arranged automatically.
1. Double-click class. At the quick dialog, enter "-(" or "-->", and enter interface names, separate interface
names by "," character.
2. And press [Enter] key. Several interfaces required by selected class is created and arranged automatically.
7 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
2. And click the component where the port will be contained in the [main window].
3. A port is created on the component. At the quick dialog, enter the port name and press [Enter] ken to be
complete.
You can create port by dragging port from [model explorer] to main diagram.
1. Drag port in the [model explorer] and drop on the component in the main diagram.
2. A port appears on the component. If it is not dropped on the component but on the other area of the diagram,
component with port will be created
8 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
2. And click the component where the part will be contained in the [main window].
2. Drag from one part and drop to the other part in the [main window].
9 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
ComponentInstance
Semantics
A component instance is an instance of a component that resides on a node instance. A component instance may
have a state.
2. And click at the position where ComponentInstance will be placed in the [main window].
3. Enter the component instance name at the quick dialog and press [Enter] key. The result is as follows.
10 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
2. Right-click the selected ComponentInstance, select [Add] -> [Attribute Link] popup menu.
3. At [Slots] tab of the [collection editor], you can add attribute link by using button.
11 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
Artifact
Semantics
An Artifact represents a physical piece of information that is used or produced by a software development process.
Examples of Artifacts include models, source files, scripts, and binary executable files. An Artifact may constitute the
implementation of a deployable component.
2. And click at the position where Artifact will be placed in the [main window].
12 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
3. The artifact is created on the diagram and the quick dialog is shown. At the quick dialog, enter the artifact
name
Association
2. Drag from one associated and drop to another in the [main window].
Dependency
13 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
2. Drag and drop between elements in the [main window] in depending direction.
Realization
2. Drag and drop between elements in the [main window] in realization direction.
14 of 15 2/6/2014 8:39 AM
StarUML 5.0 User Guide (Modeling with Component Diagram) http://staruml.sourceforge.net/docs/user-guide(en)/ch05_7.html
Link
2. Drag from one ComponentInstance and drop to the other ComponentInstance in the [main window]. Then
the link is created as follows.
15 of 15 2/6/2014 8:39 AM