-
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
Initial drafting of msmi support #333
Conversation
This reverts commit 82142e2
…-msmi-support # Conflicts: # src/cpp/CMakeLists.txt
As you might expect, I would like to see YAML here as well. Sure, we can switch from JSON at a later time, but it will require more work the more JSON is used. Now it is used for this, the Java msmi stuff, scenarios and the new orchestration format. If everyone agree on using JSON, then I can live with that. But am I really the only one that feels it is not suited for this? Perhaps the inability to embed comments is the most prominent example of why another format should be preferred. |
YAML vs json. I think we should focus on ease of parsing for machines and ease of writing for machines. The format should also have good support for a schema language and validation, such as xml schema or json schema. Probably YAML has one as well. It should also be well suited for hierarchies. YAML is probably more rigged towards human readability and "writability". My point is that this format will probably not be edited by humans that much in the end, and in my opinion we could just as well have used XML, since this is the language of FMI elsewhere. Again XML hurts to read and write for humans, but is excellent for computers. |
I'm not stuck on YAML either, but I'd love to see a discussion on this. JSON is starting to be used for alot of different things, and I have never seen an open discussion on this. I would also prefer XML over JSON as we already use it for FMI, SSP, DCP and log configuration. |
In order to not pollute this PR any further with discussions on which format should be used, I opened a seperate issue for discussion: #334 |
Anyone on linux that is able to reproduce? |
…Size", which for fixed_step_algorithm a decimationFactor is calculated from.
…ename "fixedStepMaster" algorithm -> "fixedStep"
At this moment we look for the extended model description files in the same directory as |
# Conflicts: # src/cpp/CMakeLists.txt
I propose that we leave this for a later PR (after the 0.5.0 release). I think having the XML files outside the FMUs will be the main mode of usage in the use cases for the time being. |
The |
|
…xml or in load config call.
Either that, or put it in a new |
A new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go, go, go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
My comment about putting the (optional) runtime specific entries into a <DefaultExperiment startTime="0.0">
<Algorithm name="fixedStep" stepSize="1e-4"></Algorithm>
</DefaultExperiment> Which can be completely ommited btw, rather than: <StartTime>0.0</StartTime>
<BaseStepSize>1e-4</BaseStepSize>
<Algorithm>fixedStep</Algorithm> However, the parameters to the Algorithm would be algorithm specific, dunno how that should best be handled. Probably some annotations stuff. Then basically you can have the exact same layout in SSP. |
I'm not completely opposed to this. Let's continue the discussion in #404. |
This is the outcome of a mob session before summer where we started exploring features from WP2. About time we make a PR.
CraneController.json
CraneController.xml
andKnockleBoomCrane.json
KnockleBoomCrane.xml
specify the configuration of what FMI variables are used to form plugs, sockets and bonds. These files can be treated as extentions to the modelDesrcription.xml and should probably be located in the FMU root.mapping.json
SystemStructure.xml
is the proposed cse configuraion file where the connections of plugs and sockets are defined in addition to the rest of the configuration from the SSP. The schema for the SystemStructure is defined inSystemStructure.xsd
The configuration has been extended to include:
SumConnection
configuration as the first example of an instance of a "advanced connection"decimationFactor
for the sub simulators to configure their time stepsCloses #334 - "Custom configuration format(s) used by CSE" (discussion)
Closes #341 - "Configuration for advanced connections"
Closes #273 - "Configuration support for multiple time step"
Closes #250 - "PoC for wp2 standard"