public class FMIModelDescription
extends java.lang.Object
A Functional Mock-up Unit file is a .fmu file in zip format that contains a .xml file named "modelDescription.xml". This class is a representation of the elements of that file.
FMI documentation may be found at http://www.modelisar.com/fmi.html.
Red (cxh) |
Red (cxh) |
Modifier and Type | Field and Description |
---|---|
private com.sun.jna.NativeLibrary |
_nativeLibrary
The NativeLibrary associated with the platform-dependent
shared library in the .fmu file.
|
boolean |
canGetAndSetFMUstate
For FMI 2.0 and greater, the XML file may specify that the FMU
supports getting and setting its state.
|
FMICoSimulationCapabilities |
capabilities
The capabilities for co-simulation.
|
java.util.List<java.io.File> |
files
The list of files that were extracted from the .fmu file.
|
java.lang.String |
fmiVersion
The fmiVersion, typically the value of the fmiVersion
attribute from a .fmu file.
|
java.lang.String |
guid
The FMI guid, typically the value of the guid attribute from a
.fmu file.
|
java.lang.String |
modelIdentifier
The FMI modelIdentifier, typically the value of the
modelIdentifier attribute from a .fmu file.
|
java.lang.String |
modelName
The FMI modelName, typically the value of the modelName
attribute from a .fmu file.
|
java.util.List<FMIScalarVariable> |
modelVariables
The list of ScalarVariable elements.
|
int |
numberOfContinuousStates
Number of continuous states.
|
int |
numberOfEventIndicators
Number of event indicators.
|
java.util.Map<java.lang.String,java.lang.String> |
typeDefinitions
A map from TypeDefinition type name declarations to the
defined type name.
|
Constructor and Description |
---|
FMIModelDescription() |
Modifier and Type | Method and Description |
---|---|
com.sun.jna.NativeLibrary |
getNativeLibrary()
Get the native library of C functions for the current platform.
|
java.lang.String |
toString()
Return the value of the FMI modelName element.
|
public boolean canGetAndSetFMUstate
public java.util.List<java.io.File> files
public java.lang.String fmiVersion
public java.lang.String guid
public java.lang.String modelIdentifier
public java.lang.String modelName
public java.util.List<FMIScalarVariable> modelVariables
public int numberOfContinuousStates
public int numberOfEventIndicators
public java.util.Map<java.lang.String,java.lang.String> typeDefinitions
public FMICoSimulationCapabilities capabilities
private com.sun.jna.NativeLibrary _nativeLibrary
public com.sun.jna.NativeLibrary getNativeLibrary() throws java.io.IOException
java.io.IOException
- If the FMU file does not contain binaries
for the current platform.public java.lang.String toString()
toString
in class java.lang.Object