Demonstrations for JNI interface
To run the JNI demos:
- run
make all
which will create the shared libraries
- run
make demo
which will start up Vergil with the proper classpath and path
- For each model, select
JNI
->
Generate C Interface
which will create the interface code in the
jni
directory
and compile it.
If you have problems compiling, see the
JNIUtilities documentation for suggestions.
- Because of a bug that deletes all the relations,
the easiest thing to do is to exit vergil and
restart using
make demo
.
An alternative is
to close and reopen each model.
Another alternative is to redraw the model
- Run each model
-
meaningLife.xml
-
Simple model that answers the question to
"the meaning of life, the universe, and everything", see
meaningOfLife.c
-
testDeux.xml
-
Interface to a function that takes an int and a float and
returns a double. The float is both an input and an output
testDeux.c
-
testQuatre.xml
-
Interface to a function that takes two arrays of longs.
The second argument is both an input and an output.
testQuatre.c
-
testTrois.xml
-
Uses testDeux and testQuatre.