-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSMI needs variable groups containing variable groups #526
Comments
I might misunderstand this, but since does not have a name is seems it is only possible to have one containment hierarchy. If that is the case, I would prefer the syntax to be more explicit. Meaning VariableGroup B and C should actually recide within VariableGroup A => VariableGroupContainments element can be removed |
This has been discussion. If I remember correctly we need to solve having variable group B and C to be used on its own, and to be part of potentially several nested variable groups. @mrindar, have I understood the MSMI needs correctly here? Or can we do as @lassebje suggests:
|
There are three reasons for this format:
|
You replied while I was typing :) I think I should retract my previous comment, because semantically there is no difference between these two formats, they represent the exact same information. However, I believe it will be easier to parse/generate this file with the 'flat' format. |
Actually, a variable group containing only outputs could be contained within several variable groups, which would make the 'nested' format quite messy. Probably not a very realistic scenario though. |
This is what I meant. In this case we'll repeat the same variable group in several hierarchies as variable group B is repeated in this example:
|
I might be terribly wrong here, just thinking loud. Can we keep it flat and still explicit by referring to elements?
|
In response to parsing: This is the computers job, and is "easy" ;). As long as the naming is unique, it does not matter if is flat or nested either. Hence the VariableGroupContainments as it stand only adds to the complexity in my opinion. Here is an example of a hypothetical system
|
We should also think about frame of reference here in my opinion. One example could be |
It seems my frame-xml example crashed the renderer.. |
We definitely need to discuss how to represent reference frames, but let's not do it in this issue, please. I suggest that you open a new issue with your example and then "version 2.0" of OspModelDescription.xml can include reference frame stuff. I'll attempt to summarize what we are trying to represent and achieve for reference:
The As a consumer of
I would like to achieve this without having to 'jump through to many hoops' (i.e. the format isn't unecessarily cumbersome and complex). I'm totally fine with @lassebje's suggestion so let's just get cracking. Do you guys want to change the .xsd @ljamt, or should I just do it? |
👍I totally agree on keeping reference frames out for now. I will try to controll my hang-up on them 😉 @ljamt Should cse-core really know about composite groups or even groups at all? We can just flatten this structure in the bottom layer I assume. |
Please go ahead @mrindar :) Good to settle this revision of the schema. However, it’ll take some more effort to support parsing it.
Only the in memory representation of the configuration. Not during simulation. |
* #526: New OspModelDescription.xsd version * newline at end of file * #526 aligning example x_OspModelDescription.xml's to mach updated OspModelDescription.xsd Co-authored-by: ljamt <[email protected]>
To enable bonds, we need to support variable groups containing variable groups. The
<VariableGroupContainments>
is proposed by WP2 as shown in the following example:We have briefly discussed this before. Can we agree on the format? Is it ok?
The text was updated successfully, but these errors were encountered: