public class FMI20CallbackFunctions
extends com.sun.jna.Structure
The C language interface to Functional Mock-up Unit (FMU) files includes a fmiCallbackFunctions struct whose elements are callbacks to methods are called to log status messages, allocate memory, free memory and to notify the system that the step is finished. This class encapsulates those callbacks.
For details about how Callbacks work in JNA, see http://twall.github.com/jna/3.4.0/javadoc/overview-summary.html#callbacks.
This file is based on a file that was autogenerated by
JNAerator,
a tool
written by Olivier Chafik that
uses
a few opensource projects..
Modifier and Type | Field and Description |
---|---|
FMILibrary.FMICallbackAllocateMemory |
allocateMemory
C type : fmiCallbackAllocateMemory.
|
com.sun.jna.Pointer |
componentEnvironment
C type: fmiComponentEnvironment, which is a void *.
|
FMILibrary.FMICallbackFreeMemory |
freeMemory
C type: fmiCallbackFreeMemory.
|
FMILibrary.FMICallbackLogger |
logger
C type: fmiCallbackLogger.
|
FMILibrary.FMIStepFinished |
stepFinished
C type: fiStepFinished.
|
Constructor and Description |
---|
FMI20CallbackFunctions()
Instantiate a Java representation of the C structure that
contains the FMI call backs.
|
FMI20CallbackFunctions(FMILibrary.FMICallbackLogger logger,
FMILibrary.FMICallbackAllocateMemory allocateMemory,
FMILibrary.FMICallbackFreeMemory freeMemory,
FMILibrary.FMIStepFinished stepFinished,
com.sun.jna.Pointer componentEnvironment)
Instantiate a Java representation of the C structure that
contains the FMI call backs.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
getFieldOrder()
Return the field names in the proper order.
|
protected void |
initFieldOrder()
Deprecated.
As of jna-3.5.0, use getFieldOrder() instead.
|
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public FMILibrary.FMICallbackLogger logger
public FMILibrary.FMICallbackAllocateMemory allocateMemory
public FMILibrary.FMICallbackFreeMemory freeMemory
public FMILibrary.FMIStepFinished stepFinished
public com.sun.jna.Pointer componentEnvironment
public FMI20CallbackFunctions()
public FMI20CallbackFunctions(FMILibrary.FMICallbackLogger logger, FMILibrary.FMICallbackAllocateMemory allocateMemory, FMILibrary.FMICallbackFreeMemory freeMemory, FMILibrary.FMIStepFinished stepFinished, com.sun.jna.Pointer componentEnvironment)
logger
- The method called to log a status message
(C type: fmiCallbackLogger).allocateMemory
- The method called to allocate cleared memory
(C type: fmiCallbackAllocateMemoryfreeMemory
- The method called to free allocated memory
(C type: fmiCallbackFreeMemory)stepFinished
- The method called when the step is finished.
(C type: FmiStepFinished)componentEnvironment
- The environment for the component.
(C type: fmi2ComponentEnvironment)protected java.util.List getFieldOrder()
This is new in jna-3.5.0.
getFieldOrder
in class com.sun.jna.Structure
@Deprecated protected void initFieldOrder()