org.ptolemy.fmi
Class FMULibrary.FMULogger
java.lang.Object
org.ptolemy.fmi.FMULibrary.FMULogger
- All Implemented Interfaces:
- com.sun.jna.Callback, FMILibrary.FMICallbackLogger
- Enclosing interface:
- FMULibrary
public static class FMULibrary.FMULogger
- extends java.lang.Object
- implements FMILibrary.FMICallbackLogger
The logging callback function.
Nested classes/interfaces inherited from interface com.sun.jna.Callback |
com.sun.jna.Callback.UncaughtExceptionHandler |
Fields inherited from interface com.sun.jna.Callback |
FORBIDDEN_NAMES, METHOD_NAME |
Method Summary |
void |
apply(com.sun.jna.Pointer fmiComponent,
java.lang.String instanceName,
int status,
java.lang.String category,
java.lang.String message,
com.sun.jna.Pointer parameters)
Log a message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FMULibrary.FMULogger
public FMULibrary.FMULogger()
apply
public void apply(com.sun.jna.Pointer fmiComponent,
java.lang.String instanceName,
int status,
java.lang.String category,
java.lang.String message,
com.sun.jna.Pointer parameters)
- Log a message.
Note that arguments after the message are currently ignored.
- Specified by:
apply
in interface FMILibrary.FMICallbackLogger
- Parameters:
fmiComponent
- The component that was instantiated.instanceName
- The name of the instance of the FMU.status
- The fmiStatus, see
FMILibrary.FMIStatus
category
- The category of the message,
defined by the tool that created the fmu. Typical
values are "log" or "error".message
- The message in printf formatparameters
- The printf style parameters.