Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » The default value"unbounded" of an attribute(The default value"unbounded" of an attribute)
The default value"unbounded" of an attribute [message #1028450] Thu, 28 March 2013 09:14 Go to next message
sabrina ing is currently offline sabrina ingFriend
Messages: 39
Registered: February 2013
Member
Hi,

I'm modeling a real time operating system (RTOS) using Papyrus and using the Profile in Software Resource Modeling (SRM) of Standard MARTE.
I have an Element Class named "Task", this Class has an attribute "MaxPriority" which its type is an Integer.

I have two requirements:
First, I want to assign the default value "unbounded" for the attribut "MaxPriority" in my Model, , I chose the type Integer but my problem is how to assign "unbounded" which is a String Type to an attribute of type Integer?

Second, I want to know how to get the default value "unbounded" of the attribute "MaxPriority" in java code.

I'd appreciate any help on this.

Thanks in advance
Re: The default value"unbounded" of an attribute [message #1028536 is a reply to message #1028450] Thu, 28 March 2013 11:35 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 844
Registered: July 2009
Senior Member
Hi, Sabrina,

I don't think that "unbounded" is a valid value for an Integer
property. The ' * ' value of the UnlimitedNatural type indicates
"unbounded", but the Integer type has no such value.

Cheers,

Christian


On 2013-03-28 09:14:13 +0000, sabrina ing said:

> Hi,
>
> I'm modeling a real time operating system (RTOS) using Papyrus and
> using the Profile in Software Resource Modeling (SRM) of Standard MARTE.
> I have an Element Class named "Task", this Class has an attribute
> "MaxPriority" which its type is an Integer.
>
> I have two requirements:
> First, I want to assign the default value "unbounded" for the attribut
> "MaxPriority" in my Model, , I chose the type Integer but my problem
> is how to assign "unbounded" which is a String Type to an attribute of
> type Integer?
>
> Second, I want to know how to get the default value "unbounded" of the
> attribute "MaxPriority" in java code.
>
> I'd appreciate any help on this.
>
> Thanks in advance
Re: The default value"unbounded" of an attribute [message #1028578 is a reply to message #1028536] Thu, 28 March 2013 12:57 Go to previous message
sabrina ing is currently offline sabrina ingFriend
Messages: 39
Registered: February 2013
Member
Hi Christian,

Thanks for your help.



Previous Topic:Custom Menu Entry in Create Object of Property
Next Topic:Papyrus Kepler version doesn't support Palette customization
Goto Forum:
  


Current Time: Thu Dec 18 07:17:57 GMT 2014

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

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