Book a Demo

Author Topic: Type vs Subtype  (Read 5287 times)

minna

  • EA User
  • **
  • Posts: 64
  • Karma: +1/-0
    • View Profile
Type vs Subtype
« on: August 07, 2014, 10:23:54 pm »
Hi,

We are using UPDM 2.0 and have created an OV-2 diagram with Nodes, NodeRoles and Needlines. NodeA (parent of NodeB) contains NodeB (parent of NodeRoleA) which contains NodeRoleA. This NodeRoleA is connected with a Needline to NodeRoleB which is situated in NodeC (parent of NodeRoleB).
 
When running the UPDM model validation, we get a warning that states: MVR800013 - warning (NodeRoleA (NodeRole)): The object does not have a valid type (Permitted values: Node)
 
What is the difference between a Type and a Subtype? Where can we change the Type of NodeRoleA as suggested by this warning?

Thank you,
Minna

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Type vs Subtype
« Reply #1 on: August 08, 2014, 09:10:52 am »
Quote
Where can we change the Type of NodeRoleA as suggested by this warning?
Select NodeRoleA and press Ctrl+L
The Sparx Team
[email protected]

minna

  • EA User
  • **
  • Posts: 64
  • Karma: +1/-0
    • View Profile
Re: Type vs Subtype
« Reply #2 on: August 08, 2014, 08:03:43 pm »
Hi,

Thanks for the reply. What am I changing when I press Ctrl+L? Type or Subtype?

What is the difference between a Type and a Subtype? When looking at the properties of a element, only Subtype is available (is NodeRole in this case), not Type.

The warning mentioned stated that we need to change the Type. Is it the same as Subtype?

Thanks,
Minna

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Type vs Subtype
« Reply #3 on: August 09, 2014, 05:26:28 am »
Quote
Thanks for the reply. What am I changing when I press Ctrl+L?
Generally that will change the classifier.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Type vs Subtype
« Reply #4 on: August 12, 2014, 07:59:09 pm »
Quote
What is the difference between a Type and a Subtype?
The Type is the main category of element: Class, Activity, Component, etc. The Subtype is a further subcategorization.

If you create a regular activity diagram, and create an Action, EA pops up a menu where you must select the type of Action to create. In this case, the element type is Action and the subtype is Atomic, Call Behavior, etc.

Classifier is a different thing again. It is not a categorization, but a reference to a definition. An Object normally has a Class classifier, Actions have Activity classifiers - the classifier is the reference from the instance element to the defining element.

Oh, and an element's type can be changed in the Element Properties window (not the dialog). You'll find the type displayed there, and an ellipsis button ("...") on the far right, which is normally invisible but it's there. Click that and EA opens the Select Element Type dialog.

HTH,


/Uffe
« Last Edit: August 12, 2014, 08:02:09 pm by Uffe »
My theories are always correct, just apply them to the right reality.