#3673 closed enhancement (fixed)
Add a button for inferring bindings
Reported by: | Olena Rogovchenko | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | OMEdit | Version: | v1.9.4-dev-nightly |
Keywords: | Cc: | adeel.asghar@… |
Description
I need a button in the right click menu that calls "infer bindings" and passes it as arguments the path of the current class (the one right clicked) and the current program. The result is an update program where the model definition will be updated, and this should be updated in the editor.
Attachments (4)
Change History (10)
by , 9 years ago
Attachment: | Requirement_Modeling.pdf added |
---|
comment:1 by , 9 years ago
Can you provide a mos-script for it with a text model? I need to know how it is working with OMC. If you have any test-case for in the test-suite then just send me a link of it.
comment:2 by , 9 years ago
I attached an example model + script call, the call will update the model TestModel
from
model TestModel
test.PumpR pr;
test.SystemModel sm;
end TestModel;
to
model TestModel
test.PumpR pr(inOperation = sum({if pa.on then 1 else 0, if pb2.volFlowRate > 0 then 1 else 0, if pb.volFlowRate > 0 then 1 else 0}));
test.SystemModel sm;
end TestModel;
And that is what should be reloaded in the editor.
I hope it is clearer.
comment:4 by , 9 years ago
Milestone: | Future → 1.9.4 |
---|
An idea of what it should look like