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
Fetch connection list API #10042
Fetch connection list API #10042
Conversation
@perost is better candidate for reviewing this. |
Please add at least some simple testcase in testsuite/openmodelica/interactive-API too, otherwise we might break the API by accident and not notice it. Also, what do you want this API for? |
I have an application with several components in an array, requiring exact connection info on which components in the array are connected. Also, getting all the connections at once might be better. |
I think I managed to fix the conflict, and I also fixed the if-statement added to flatten since it included too much (the execstat and dumpFlatModelDebug for flatten shouldn't depend on the flag for handling connections). |
@perost thanks, I had a look also, it seems OK. |
Implement the
getConnectionList
API that can retrieve the list of all connections at once including those within loops, by instantiating the model.