public class ImportFMUForQSSAction
extends javax.swing.AbstractAction
This package is optional. To add the "Import FMU" menu choice to the GraphEditor, add the following to the configuration:
<property name="_importFMUClassName" class="ptolemy.data.expr.StringParameter" value="ptolemy.vergil.basic.imprt.fmu.ImportFMUAction"/>
BasicGraphFrame
checks for this
parameter and adds the "Import FMU" menu choice if the class named
by that parameter exists.
The $PTII/ptolemy/configs/defaultFullConfiguration.xml
file
already has this parameter. The ptiny configuration does not have
this parameter so that we have a smaller download.
An FMU file is a zipped
file that contains a file named modelDescription.xml
that describes the ports and parameters that are created.
At run time, method calls are made to C functions that are
included in shared libraries included in the .fmu
file.
We use an import facility here is that the user an configure the ports of the actor, possibly deleting ports. If the actor read its .fmu file each time it was instantiated, then it would be more difficult to manage because the ports could change.
Modifier and Type | Field and Description |
---|---|
(package private) Top |
_frame
The top-level window of the contents to be exported.
|
Constructor and Description |
---|
ImportFMUForQSSAction(Top frame)
Create a new action to import a Functional Mock-up Unit (FMU)
.fmu file.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Import a FMU.
|
Top _frame
public ImportFMUForQSSAction(Top frame)
frame
- The Frame which to which this action is added.