Node Types vs Nodes
BeginnerNode Types vs Nodes
Node Type (Metamodel / M2)
A Node Type is a type definition — it describes a category of elements.
- Created in the metamodel layer
- Defines properties that instances will have (e.g., a "Server" type might have properties: "IP Address", "OS", "RAM")
- Has a name, color, and shape for visual display
- Appears in the Toolbox for dragging onto the canvas
- Found under Node Types in the Tree View
Node (Model / M1)
A Node is a concrete instance of a Node Type.
- Created in the model layer
- Has specific property values (e.g., IP = "10.0.1.5", OS = "Linux")
- Has a label (display name) and optional description
- Can be placed on diagrams (canvas)
- Can be connected via relationships
- Found under Nodes in the Tree View
How to Create Each
Creating a Node Type:
- In the Tree View, find the Node Types section
- Click the + button to add a new Node Type
- Give it a name (e.g., "Server")
- Add properties in the Properties Panel
- Optionally set a color and shape
Creating a Node (Instance):
- Open a diagram on the canvas
- Find the Node Type in the Toolbox (left panel)
- Drag the type onto the canvas
- A new node instance is created and placed on the diagram
- Edit its label and properties in the Properties Panel
Example
| Node Type (M2) | Nodes (M1) |
|---|---|
| Server | web-server-01, db-server-02 |
| Application | payment-service, auth-service |
| Person | Alice, Bob, Charlie |