public class ImportFMUAsJavaFMUAction extends javax.swing.AbstractAction
This class is experimental.
Use ImportFMUAction to import a FMU as a Ptolemy Actor.
This class imports a FMU for use in a Java implementation of the FMI Master Algorithm.
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.ImportFMUAsJavaFMUAction"/>
BasicGraphFrame checks for this
parameter and adds the "Import FMU as Java FMU" menu choice if the class named
by that parameter exists.
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
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
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|
The top-level window of the contents to be exported.
|Constructor and Description|
Create a new action to import a Functional Mock-up Unit (FMU) .fmu file.
|Modifier and Type||Method and Description|
Import a FMU.
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ImportFMUAsJavaFMUAction(Top frame)
frame- The Frame which to which this action is added.