Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.

There are 0 guests and 0 other users also viewing this topic
You are here: