Example #1
0
 public boolean executeAlgorithm(
     String name, ExternalAlgorithmData data, ExternalContext context) {
   byte rc =
       s_lib.CExternalEntry_executeAlgorithm(
           name, JnaExternalAlgorithmData.toNative(data), JnaExternalContext.toNative(context));
   return rc == 1;
 }
Example #2
0
 public void testSendMessage(ExternalContext context, Message msg) {
   s_lib.CExternalEntry_testSendMessage(
       JnaExternalContext.toNative(context), JnaExternalContext.toNative(msg));
 }
Example #3
0
 public void testFailureReporting(ExternalContext context, String msg) {
   s_lib.CExternalEntry_testFailureReporting(JnaExternalContext.toNative(context), msg);
 }
Example #4
0
 public void testProgressReporting(ExternalContext context, float percentDone, String msg) {
   s_lib.CExternalEntry_testProgressReporting(
       JnaExternalContext.toNative(context), percentDone, msg);
 }
Example #5
0
 public void testLogging(ExternalContext context, LogLevel level, String msg) {
   JnaExternalContext jnaContext = (JnaExternalContext) context;
   s_lib.CExternalEntry_testLogging(JnaExternalContext.toNative(context), level.toString(), msg);
 }