@DLL
The @DLL Annotation simplifies the integration of native Libraries written in C++, C, and FORTRAN. It takes an argument that corresponds to the name of the DLL (Windows), Shared Object (Linux/Unix), or Library (OSX).
FORTRAN modelers using OMS will not encounter this annotation most of the time because it will operate behind the scenes of the model simulation file containing OMS DSL. This description and example are provided primarily for information purposes.
Synopsis
@DLL(<String>)
arg - the core name of the DLL (without lib prefix in Linux, no file extension).
Type
Interface Annotation
Scope
Interface<T extends Library>
Example
import oms3.annotation.*;
@DLL("F90Dyn")
interface F95Test extends com.sun.jna.Library {
// java interface method to FORTRAN
int foomult(int a, int b);
}
// Bind 'F90Dyn.dll' to the interface 'F95Test'
F95Test lib = Libraries.bindLibrary(F95Test.class);