Opened 17 years ago

Closed 11 years ago

#133 closed defect (wontfix)

Problem with getParameterNames()

Reported by: donida Owned by: donida
Priority: critical Milestone: Compiler Redesign
Component: Command Prompt Environment Version: 1.6.0
Keywords: Cc: donida, Adrian Pop, Adeel Asghar

Description

see the comments.

Change History (5)

comment:1 by donida, 17 years ago

getParameterNames() function does not return the parameter of the extenxed class, for example:

package foo

connector pin

Real f;
parameter Real Pos;

end pin;
partial model ff

pin g1;
pin g2;
parameter Real tt;
parameter Real t1;

end ff;
model ff1 extends ff;

parameter Real pc;
parameter Real pc1;

end ff1;

end foo;

getParameterNames(foo.ff1) does not return g1, g2, tt and t1.

comment:2 by Martin Sjölund, 14 years ago

This should be considered in a compiler redesign to make the compiler phases more well defined. To me, it is clear that one needs to perform a preprocessing step in order to do graphical editing properly.

comment:3 by Martin Sjölund, 11 years ago

Cc: Adeel Asghar added

Adeel: Does this work in OMEdit now?

comment:4 by Adeel Asghar, 11 years ago

No. getParameterNames only work for one class. OMEdit checks the inherited classes of the class and calls getParameterNames for all of them to get the inherited parameters.

comment:5 by Martin Sjölund, 11 years ago

Resolution: wontfix
Status: newclosed

So it works, then. And I can close this :)

Note: See TracTickets for help on using tickets.