This service is archived, please use

Home » Capella » Capella Studio » Diagram : "provided-by" meaning
Diagram : "provided-by" meaning [message #3335] Tue, 02 July 2019 06:52 Go to next message
jmorane is currently offline  jmorane
Messages: 63
Registered: May 2019
Hello everyone,

I managed to create some customized viewpoints using Capella Studio by imitating the BasicVP code and this video

However, now that I want to go a bit deeper about the creation of VP, several questions come up.

The first one is : What is the meaning of "domain-context: provided-by query "<%getPriceObjects()%>"" that is written in the Basic Price vp ( price.vpdsl/model/price.diagram.text ), and what is the difference with the "provided-by association external emde.ExtensibleElement.ownedExtensions" defined in the video ?

Any help will be appreciated !

[Updated on: Tue, 02 July 2019 06:58]

Report message to a moderator

Re: Diagram : "provided-by" meaning [message #3337 is a reply to message #3335] Tue, 02 July 2019 07:28 Go to previous message
jmorane is currently offline  jmorane
Messages: 63
Registered: May 2019
Actually I think it will be simpler to give my whole problematic instead of multiple questions which will occur one by one.

I want to create a Viewpoint to show some properties on my system. I want to extend each physical components in order to gave them the attributes "mass ( Double ) " and " isPropellant ( Boolean )".
This part is manageable following the exemple of the previous video.

However, I want to add two other things :

The first one is a calculation of global mass for "higher" components (ie, components with no parent component), which will be the sum of the mass of all its sub_components. I also want to add an attribute ( the integer Stage ) here.
Then, a "global" container, that sums up the total mass of the system and perform a little calculation ( sum the total mass, ponderated by the stage defined previously ) and display the result.

I think the part that I understand the less is the 'Service' one, the one where the calculations will be made.
I see that in the two exemples the way the two are managed seems very different ( in '' for the video, and in capella.vp.price\vp/srv/org/polarsys/Capellavp/price for the BasicPrice VP). What are the functions that are generated automatically when generating the VP, and where can I modified (or create ) them ?


Previous Topic: Quickfix to Open Settings
Next Topic: Access to the diagram's objects in Capella Studio
Goto Forum:

Current Time: Mon Mar 30 18:30:35 EST 2020

Total time taken to generate the page: 0.01547 seconds