org.ptolemy.fmi
Class FMULibrary.FMULogger

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jna.Callback
com.sun.jna.Callback.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME
 
Constructor Summary
FMULibrary.FMULogger()
           
 
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
 

Constructor Detail

FMULibrary.FMULogger

public FMULibrary.FMULogger()
Method Detail

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 format
parameters - The printf style parameters.