Class ImportFMUForQSSAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- ptolemy.vergil.basic.imprt.fmu.ImportFMUForQSSAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class ImportFMUForQSSAction extends javax.swing.AbstractAction
An Action to Import a Functional Mock-up Unit (FMU).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.
- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Thierry S. Nouidui. Based on ImportFMUAction.java by Christopher Brooks
- See Also:
- Serialized Form
- Pt.AcceptedRating:
- Red (thn)
- Pt.ProposedRating:
- Red (thn)
-
-
Constructor Summary
Constructors Constructor Description ImportFMUForQSSAction(Top frame)
Create a new action to import a Functional Mock-up Unit (FMU) .fmu file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Import a FMU.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
ImportFMUForQSSAction
public ImportFMUForQSSAction(Top frame)
Create a new action to import a Functional Mock-up Unit (FMU) .fmu file.- Parameters:
frame
- The Frame which to which this action is added.
-
-