Book a Demo

Author Topic: Creating Custom Datatypes?  (Read 6426 times)

Kym

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Creating Custom Datatypes?
« on: January 16, 2008, 04:32:45 pm »
I'm a newbie so I apologize if I've simply overlooked something. I'm using EA7.0 on a Windows platform. I'm simply trying to create some primitive datatypes in my UML2.x class model. While I can add UML2.x elements such as enumerations, etc., I cannot find the path to creating new datatypes. Through Settings->UML, I do see the UML Type 'datatype' (as well as 'enumeration' etc.) but unlike 'enumeration' I am unable to create an element of that UML type. What am I missing? Thanks

Kym

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Creating Custom Datatypes?
« Reply #1 on: January 23, 2008, 02:16:38 pm »
Anyone ???

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Creating Custom Datatypes?
« Reply #2 on: January 23, 2008, 06:02:08 pm »
Are you talking about something like a MOF metamodel?
No, you can't have it!

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Creating Custom Datatypes?
« Reply #3 on: January 23, 2008, 09:40:14 pm »
For lenguage datatypes it is in tools->lenguage datatypes.
For modeling I gues  you could just create an element with the required type/stereotype and use it (if you want to use for parameters and such).
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Kym

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Creating Custom Datatypes?
« Reply #4 on: January 24, 2008, 08:14:55 am »
Quote
For lenguage datatypes it is in tools->lenguage datatypes.
For modeling I gues  you could just create an element with the required type/stereotype and use it (if you want to use for parameters and such).


I'm not seeing this menu path available in EA 7.0 (Build 818 ). The closest I have found is Settings->UML which brings up a dialog titled 'UML Types'. This is where types such as 'enumeration' and even 'datatype' are listed. However, I cannot find any menu path allowing me to actually create a UML datatype element within a UML class diagram, like is available for defining enumerations. 2 days ago I sent en email into 'support' of which I have received no reply yet. Feeling a bit frustrated with EA customer support, yesterday I just went ahead and submitted an official bug report stating that there seems to be no way of accomplishing the creation of a new UML Datatype.

In essence, what I am trying to do is to define some primitive datatypes (i.e., triing, double, etc.) to use as types for various class attributes. However, I need these to be true UML datatypes in that the generated XMI represents the datatype element as xmi:type="uml: Datatype", just like it does for enumerations (i.e., xmi:type="uml:Enumeration").

Any help would be much appreciated as this issue is costing me several days. Thanks


« Last Edit: January 24, 2008, 09:28:03 am by Kym »

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Creating Custom Datatypes?
« Reply #5 on: January 24, 2008, 06:01:10 pm »
You can't modify the basic uml without creating a MOF metamodel (then it will be your own language).  You can however create classes that represent your primitive types and then use these classes as Types for attributes etc in other classes.  They will display in the Types drop down box when an Attribute for a class is created.

Stan.

Kym

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Creating Custom Datatypes?
« Reply #6 on: January 25, 2008, 08:50:24 am »
Quote
You can't modify the basic uml without creating a MOF metamodel (then it will be your own language).  You can however create classes that represent your primitive types and then use these classes as Types for attributes etc in other classes.  They will display in the Types drop down box when an Attribute for a class is created.

Stan.


My intention is not to augment the UML metamodel but rather to add, and configure, a UML datatype element to my UML class diagram. This would be different than creating a class as the generated XMI would not describe it as having an xmi:type="uml: Datatype", similar to the XMI that is generated to represent enumerations, a kind of UML datatype (xmi:type="uml:Enumeration").

I'm currently dialoging with Sparx Support on this issue and I'll make sure to update this thread with the results. Being a progressive modeling tool (and I'd say platform as well), I'm sure that EA supports what I'm trying to accomplish. I just need some guidance in finding out how to go about it.