org.ptolemy.fmi
Interface FMILibrary.FMICallbackLogger

All Superinterfaces:
com.sun.jna.Callback
All Known Implementing Classes:
FMULibrary.FMULogger
Enclosing interface:
FMILibrary

public static interface FMILibrary.FMICallbackLogger
extends com.sun.jna.Callback

A callback for the fmiCallbackLogger() function.

Derived classes such as FMICallbackFunctions have a static classes that extend this interface and implements Structure.ByReference or Structure.ByValue.

For details about how Callbacks work in JNA, see http://twall.github.com/jna/3.4.0/javadoc/overview-summary.html#callbacks.


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
 
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)
          Invoke the fmiCallbackLogger() function.
 

Method Detail

apply

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)
Invoke the fmiCallbackLogger() function.

Parameters:
fmiComponent - The fmiComponent
instanceName - The name of the instance.
status - One of FMIStatus.
category - The category of the message, typically defined by the tool that created the fmu.
message - The message in printf format
parameters - The printf style parameters.