Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Numerical value for a property
Numerical value for a property [message #1691929] Fri, 10 April 2015 13:26 Go to next message
Lola Masson is currently offline Lola MassonFriend
Messages: 27
Registered: March 2015
Junior Member
Hello,
I am creating a profile, and I want to add a property "mass". I want to be able to choose numerically the value of this property, but I don't know what type I have to use.
Thank you,
Lola
Re: Numerical value for a property [message #1692114 is a reply to message #1691929] Mon, 13 April 2015 14:22 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Lola,

UML provides a primitive types library with three numeric types:
Integer, Real, and (for cardinalities as a special case)
UnlimitedNatural.

If these are not sufficient, you can define your own types as instances
of the PrimitiveType metaclass.

HTH,

Christian


On 2015-04-10 13:26:16 +0000, Lola Masson said:

> Hello,
> I am creating a profile, and I want to add a property "mass". I want to
> be able to choose numerically the value of this property, but I don't
> know what type I have to use.
> Thank you,
> Lola
Re: Numerical value for a property [message #1692182 is a reply to message #1692114] Tue, 14 April 2015 08:00 Go to previous message
Lola Masson is currently offline Lola MassonFriend
Messages: 27
Registered: March 2015
Junior Member
This is perfect !
I also found the library with many types (boolean, float, ...) in <<ModelLibrary>> Ecore Primitive Types.
Regards,
Lola
Previous Topic:Marte profile
Next Topic:how to create a BDD to a sysml project
Goto Forum:
  


Current Time: Fri Apr 19 02:52:32 GMT 2024

Powered by FUDForum. Page generated in 0.01310 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top