2

The UML 2.5.1 specification says this about Node (p. 658, section 19.4.3 "Semantics"):

"(...) The internal structure of Nodes can only consist of other Nodes."

However, it doesn't directly specify what Element can own a top-level Node in the model (as used on a deployment diagram, for example). Node inherits from Class as well as from the abstract type DeploymentTarget which inherits NamedElement.

Is it only Package that can own a Node that is not a nested Node? Or would other owner types be permissible?

1
  • Since Node is a specializaton of Class you can probably assume any element being a parent of Node. (See the diagram above your citation). Commented Jul 29, 2024 at 7:57

1 Answer 1

1

nestedNodes are defined in the namespace of a node. That doesn't mean they are part of the structure of this node. To model this, you use them as types of the parts of the node. These types may or may not be in the set of nestedNodes. Often they are, but it is by no means necessary.

As mentioned in a comment above, nodes are special classes and can be owned by the same elements as classes (packages, other classes, components...). The ownership itself doesn't mean much.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.