- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Accessing inherited class modifiers
Accessing inherited class modifiers
Accessing inherited class modifiers
Hello,
I have a model such as the one below with an extends which contains modifiers. How do I get the modifier name.value pairs for it using the OMC API?
I know how to get the name of the inherited class using getNthInheritedClass, but then I need to access its modifiers but the existing modifier access functions don't seem to be dealing with this situation. Am I missing something?
Thanks
Chahe
model A
extends Interfaces.SISO(y(start=y_start));
end A;
Re: Accessing inherited class modifiers
It seems the documentation in OMC-API.pdf is outdated to some extent. The information in the OpenModelica System guide is better and I found the functions I was looking for called:
getExtendsModifierNames
getExtendsModifierValue
However, currently the latest nightly-build Windows version is 9917 and it doesn't yet support this.
On Ubuntu, version 993x seems to have it.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Accessing inherited class modifiers