Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: s_eauser on January 02, 2020, 10:51:58 pm

Title: Value Type, Quantity Kind and Units
Post by: s_eauser on January 02, 2020, 10:51:58 pm
I am confused about value types. I understand that quantity kind could mean a physical quantity like temperature and the unit is the SI unit of measure degree centigrade. What exactly is value type here? Is it the description of the value I am trying to measure?

For example:
Value Type: Micro-controller Temperature
Quantity Kind: Temperature
Unit: Degree Celsius
Title: Re: Value Type, Quantity Kind and Units
Post by: philchudley on January 03, 2020, 01:30:04 am
A ValueType is used, typically, as a typing mechanism for Value Properties (in a Block), Flow Property (in an Interface Block), or for a Port (most likely a Proxy Port)

So yes, it can represent what you are trying to measure. For example, a Block that is monitoring temperature could have a Value Property named currentTemperature, typed to a ValueType named AmbientTemperature with Quantity Kind = temperature and Units = degree Celsius. This Block could also have a Proxy Port named Temperature In typed to ValueType named AmbientTemperature

Hope this helps

Phil
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 04:07:24 pm
Hello, is there actually a SI Unit library available?

Anyway I tried to model Units , quantiykind and value types.
Why do Units not have the stereotype "Unit" but the "Type" = Object in EA? This is different to the description of SYSML Specification

(https://i.imgur.com/qdd0wth.png)
Title: Re: Value Type, Quantity Kind and Units
Post by: qwerty on June 26, 2020, 04:14:42 pm
How about starting one and placing that on github to have it expanded by the community? I don't think there is one outside already.

q.
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 04:20:51 pm
Sorry, I dont get your hint. Do you wnat me to create always a new post, even if there is the same topic in the past. Anyway. Maybe you can help me again qwerty.

How can I make  the type of Unit visible, as seen in the screenshot of the ea model example hsuv?

(https://i.imgur.com/UAd4uyl.png)
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 05:16:45 pm
Ok I copied the Package <<ModelLibrary>> Unit and Qunatity Kind Library
from the EA Example

and than I choose the Property Tab and changed the field Object/Classifier to <<block>>Unit

Hope it helps someone.

I checked to model example HSUV from EA.

They dont use quantity kinds.

But why do they add following association?


(https://i.imgur.com/29LSi1X.png)
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 05:34:41 pm
Why do I have to set the Classifier? What is the purpose and why does EA is not doing it on itself?

(https://i.imgur.com/69FS8y9.png)

Title: Re: Value Type, Quantity Kind and Units
Post by: Geert Bellekens on June 26, 2020, 05:37:23 pm
If you drag the block Unit on a diagram as an instance you won't have to set the classifier manually.

Geert
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 06:07:48 pm
aah, ok,

And is this really necessary to model like this? Do you still need to model quantityKind, too?
Is it enough to use Unit and at the Value to the Variable in the Propertie/Run State Tab?
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 07:11:58 pm
If you drag the block Unit on a diagram as an instance you won't have to set the classifier manually.

Geert

Hello again Geert,

i have noticed, that using the instance instead of changing the Classifier, "quantityKind" value is missing in Run States.

How did they manage to have quantityKind in the Unit Instance?
(https://i.imgur.com/YBS1B9h.png)

https://www.sparxsystems.com/forums/smf/index.php/topic,40033.0.html#msg246055 (https://www.sparxsystems.com/forums/smf/index.php/topic,40033.0.html#msg246055)

I just try to learn from these examples, but is there a book, that describes how to model SysML with Enterprise Architect? It is a bit frustrating, that I feel I have to use more effort for Enterprise Architect than for SysML modeling. Sometimes I wished, that my boss had trusted me with Windchil Modeler or NoMagic 
Title: Re: Value Type, Quantity Kind and Units
Post by: kwasposer on June 26, 2020, 08:07:33 pm
Which approach is correct?

(https://i.imgur.com/fDI0fT2.png)
Title: Re: Value Type, Quantity Kind and Units
Post by: Eve on June 29, 2020, 11:23:31 am
Hello, is there actually a SI Unit library available?
In the model wizard you'll find a couple of libraries that define the classes for Unit and QuantityKind.

If you look at https://www.omg.org/spec/SysML/1.5/About-SysML/ (https://www.omg.org/spec/SysML/1.5/About-SysML/), you'll see the QUDV and ISO-80000 packages which can be imported into EA for a very large collection of predefined types.
Title: Re: Value Type, Quantity Kind and Units
Post by: EAButNotForGames on February 04, 2025, 11:32:16 pm
I randomly stumbled on his thread and wanted to try the ISO 80000 Library.
But I get an error message, when selecting it in the Model Builder.
Title: Re: Value Type, Quantity Kind and Units
Post by: Eve on February 06, 2025, 11:55:02 am
I randomly stumbled on his thread and wanted to try the ISO 80000 Library.
But I get an error message, when selecting it in the Model Builder.
Pro tip. It helps you to get useful replies when you provide the error message instead of just saying you got one.
Title: Re: Value Type, Quantity Kind and Units
Post by: EAButNotForGames on February 10, 2025, 05:38:30 pm
The Error Message is:

Unable to connect to service
Http Status Code: 403 Forbidden

So far, everyone in my company gets this error.
Title: Re: Value Type, Quantity Kind and Units
Post by: Takeshi K on February 12, 2025, 10:57:05 am
Just for your information,

On my machine (environment), I can download and use the library.
So, I guess that the reason is your network configuration (e.g., Your network administrator does not allow to access the page.)
Title: Re: Value Type, Quantity Kind and Units
Post by: EAButNotForGames on February 12, 2025, 05:23:00 pm
Good to know!
I guess I'll have to the network config.

Thanks for the answer.