Package 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. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected FMIModelDescription_modelDescriptionThe model description that contains the names of the variables. 
- 
Constructor Summary
Constructors Constructor Description FMULogger(FMIModelDescription modelDescription)Instantiate a FMULogger. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(com.sun.jna.Pointer fmiComponent, java.lang.String instanceName, int status, java.lang.String category, java.lang.String message)Log a message. 
 - 
 
- 
- 
Field Detail
- 
_modelDescription
protected FMIModelDescription _modelDescription
The model description that contains the names of the variables. 
 - 
 
- 
Constructor Detail
- 
FMULogger
public FMULogger(FMIModelDescription modelDescription)
Instantiate a FMULogger.- Parameters:
 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.
 
 - 
 
- 
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)Log a message.- Specified by:
 applyin interfaceFMILibrary.FMICallbackLogger- Parameters:
 fmiComponent- The component that was instantiated.instanceName- The name of the instance of the FMU.status- The fmiStatus, seeFMILibrary.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.
 
 - 
 
 -