public static class FMULibrary.FMULogger extends java.lang.Object implements FMILibrary.FMICallbackLogger
| Modifier and Type | Field and Description |
|---|---|
protected FMIModelDescription |
_modelDescription
The model description that contains the names of the
variables.
|
| Constructor and Description |
|---|
FMULogger(FMIModelDescription modelDescription)
Instantiate a FMULogger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(com.sun.jna.Pointer fmiComponent,
java.lang.String instanceName,
int status,
java.lang.String category,
java.lang.String message)
Log a message.
|
protected FMIModelDescription _modelDescription
public FMULogger(FMIModelDescription modelDescription)
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.public void apply(com.sun.jna.Pointer fmiComponent,
java.lang.String instanceName,
int status,
java.lang.String category,
java.lang.String message)
apply in interface FMILibrary.FMICallbackLoggerfmiComponent - 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 printf style format string.