public class FMULog
extends java.lang.Object
This Java method is called via a callback from the FMI C-side.
The FMI log method optionally takes a variable number of arguments
and handles #TypevalueReference#,
specially where Type is one of r, i, b or s. To print a #,
use ##.
| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
FMULog() |
| Modifier and Type | Method and Description |
|---|---|
static void |
log(FMIModelDescription modelDescription,
com.sun.jna.Pointer fmiComponent,
java.lang.String instanceName,
int status,
java.lang.String category,
java.lang.String message)
Log a message.
|
public static void log(FMIModelDescription modelDescription, com.sun.jna.Pointer fmiComponent, java.lang.String instanceName, int status, java.lang.String category, java.lang.String message)
modelDescription - The model description that contains
the names of the variables. The FMI specification states that
the variable names might not be stored in the C-functions,
which is why we can't just use the fmiComponent.fmiComponent - The component that was instantiated.instanceName - The name of the instance of the FMU.status - The fmiStatus, see
FMILibrary.FMIStatuscategory - The category of the message,
defined by the tool that created the fmu. Typical
values are "log" or "error".message - The message in printf format