|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ptolemy.fmi.FMUFile
public class FMUFile
Parse a Functional Mock-up Interface (FMI) 1.0 Functional Mock-up Unit (FMU) file and create a FMIModelDescription for later use.
The parseFMUFile() method in this class is the primary entry point into this package.
FMI documentation may be found at http://www.modelisar.com/fmi.html.
Red (cxh) |
Red (cxh) |
Constructor Summary | |
---|---|
FMUFile()
|
Method Summary | |
---|---|
private static boolean |
_is32Bit()
Return true if this is a 32bit JVM. |
private static java.util.List<java.io.File> |
_unzip(java.lang.String zipFileName)
Unzip a file into a temporary directory. |
static java.lang.String |
fmuSharedLibrary(FMIModelDescription fmiModelDescription)
Return the name of the shared library from a .fmu file. |
static FMIModelDescription |
parseFMUFile(java.lang.String fmuFileName)
Read in a .fmu file and parse the modelDescription.xml file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FMUFile()
Method Detail |
---|
public static java.lang.String fmuSharedLibrary(FMIModelDescription fmiModelDescription) throws java.io.IOException
fmiModelDescription
- The representation of the model that was read
in by {#parseFMUFile}.
java.io.IOException
- If thrown while determining the canonical path of the library.public static FMIModelDescription parseFMUFile(java.lang.String fmuFileName) throws java.io.IOException
fmuFileName
- the .fmu file
java.io.IOException
- If the file cannot be unzipped or the
modelDescription.xml file contained by the fmuFileName zip
file cannot be parsed.private static boolean _is32Bit()
private static java.util.List<java.io.File> _unzip(java.lang.String zipFileName) throws java.io.IOException
zipFileName
- The file to be unzipped.
java.io.IOException
- if the file cannot be opened, if there are problems reading
the zip file or if there are problems creating the files or directories.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |