Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » M2Doc » how to edit "Allocating Actor/Component (computed)" with M2DOC(how to edit "Allocating Actor/Component (computed)" with M2DOC)
how to edit "Allocating Actor/Component (computed)" with M2DOC [message #1832990] Wed, 30 September 2020 12:18 Go to next message
david Plancq is currently offline david PlancqFriend
Messages: 17
Registered: May 2020
Junior Member
Hello,

Is it possible to edit the "Allocating Actor/Component (computed)" of a logical function with M2DOC?

thank you
david
Re: how to edit "Allocating Actor/Component (computed)" with M2DOC [message #1832998 is a reply to message #1832990] Wed, 30 September 2020 12:59 Go to previous messageGo to next message
Samuel Rochet is currently offline Samuel RochetFriend
Messages: 21
Registered: November 2014
Junior Member
Hi David,

Modifying this information would mean reallocating the function to another actor/component.

Not sure of the use case you are looking for.
We could certainly display other information in the document, but it would then no longer be representative of the source model.
We could also imagine that the generation modifies the model on the fly. Beyond possible side effects for users, why not simply make this allocation in Capella?

Broadly speaking, the main function of M2Doc is to generate a document consistent with the source, not to modify it.
Re: how to edit "Allocating Actor/Component (computed)" with M2DOC [message #1833006 is a reply to message #1832998] Wed, 30 September 2020 13:47 Go to previous messageGo to next message
david Plancq is currently offline david PlancqFriend
Messages: 17
Registered: May 2020
Junior Member
Hi Samuel,
Sorry for the misunderstanding, I don't want to modify the model, I just want to generate a document with M2DOC in which the information of an Allocating Actor/Component (computed) is included.
It is possible when the logical function is manually allocated to a logical component:
({m:if f. allocationBlocks->size() > 0}
{m:for sys | f. allocationBlocks }
{m:sys.name}
endfor, endif)
But I don't succeed in finding the way to generate an "Allocating Actor/Component (computed)" in a doc
Thank you for your answer
d
Re: how to edit "Allocating Actor/Component (computed)" with M2DOC [message #1833011 is a reply to message #1833006] Wed, 30 September 2020 14:45 Go to previous messageGo to next message
Samuel Rochet is currently offline Samuel RochetFriend
Messages: 21
Registered: November 2014
Junior Member
The code should looks like this
MyFunction.allocatingLogicalComponents.name
Re: how to edit "Allocating Actor/Component (computed)" with M2DOC [message #1833032 is a reply to message #1833011] Thu, 01 October 2020 07:24 Go to previous message
david Plancq is currently offline david PlancqFriend
Messages: 17
Registered: May 2020
Junior Member
Unfortunatly This code seems to deal with leaf functions which have been allocated to a logical component by the user.
It doesn't work if the function (an upper function for which subfunctions are leaf functions allocated to a logical component by the user) is automatically allocated to a logical component (allocated Actor/Component (computed)).
Previous Topic:Problem with extracting interfaces from CII diagram
Next Topic:Use of Self variable in template
Goto Forum:
  


Current Time: Tue Apr 23 07:43:15 GMT 2024

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

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

Back to the top