Пример #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;
 }
Пример #2
0
 public void testFailureReporting(ExternalContext context, String msg) {
   s_lib.CExternalEntry_testFailureReporting(JnaExternalContext.toNative(context), msg);
 }
Пример #3
0
 public void testProgressReporting(ExternalContext context, float percentDone, String msg) {
   s_lib.CExternalEntry_testProgressReporting(
       JnaExternalContext.toNative(context), percentDone, msg);
 }
Пример #4
0
 public void testLogging(ExternalContext context, LogLevel level, String msg) {
   JnaExternalContext jnaContext = (JnaExternalContext) context;
   s_lib.CExternalEntry_testLogging(JnaExternalContext.toNative(context), level.toString(), msg);
 }
Пример #5
0
 public void pushEnvironmentProperties(EnvironmentSet envSet, String serializedProperties) {
   s_lib.CExternalEntry_pushEnvironmentProperties(envSet.toString(), serializedProperties);
 }
Пример #6
0
 public ExternalDataFile testFindFile(ExternalDataset dataset, String serializedKey) {
   return JnaExternalDataFile.fromNative(
       s_lib.CExternalEntry_testFindDataFile(JnaExternalDataset.toNative(dataset), serializedKey));
 }
Пример #7
0
 public ExternalAlgorithm getAlgorithm(String name) {
   return new JnaExternalAlgorithm(s_lib.CExternalEntry_getAlgorithm(name));
 }
Пример #8
0
  public void dumpDataset(ExternalDataset dataset) {

    s_lib.CExternalEntry_dumpDataset(JnaExternalDataset.toNative(dataset));
  }
Пример #9
0
 public ExternalDataset cloneDataset(ExternalDataset dataset) {
   return JnaExternalDataset.fromNative(
       s_lib.CExternalEntry_cloneDataset(JnaExternalDataset.toNative(dataset)));
 }
Пример #10
0
 public void deleteLocalTempFiles() {
   s_lib.CExternalEntry_deleteLocalTempFiles();
 }
Пример #11
0
 public Collection<String> getLogFiles() {
   PointerByReference ptrRef = s_lib.CExternalEntry_getLogFilePaths();
   String[] strs = ptrRef.getPointer().getStringArray(0);
   return Arrays.asList(strs);
 }
Пример #12
0
 public void testWriteFileAsRandomAccess(ExternalDataset dataset, ExternalDataFile extFile) {
   s_lib.CExternalEntry_testWriteFileAsRandomAccess(
       JnaExternalDataset.toNative(dataset), JnaExternalDataFile.toNative(extFile));
 }
Пример #13
0
 public ExternalDataFile testReadFileAsRandomAccess(
     ExternalDataset dataset, String serializedKey) {
   return JnaExternalDataFile.fromNative(
       s_lib.CExternalEntry_testReadFileAsRandomAccess(
           JnaExternalDataset.toNative(dataset), serializedKey));
 }
Пример #14
0
 public boolean testIsQueryOnly(ExternalDataset dataset) {
   JnaExternalDataset jnaDataset = (JnaExternalDataset) dataset;
   byte result = s_lib.CExternalEntry_testIsQueryOnly(JnaExternalDataset.toNative(dataset));
   return result == (byte) 1;
 }
Пример #15
0
 public void testSendMessage(ExternalContext context, Message msg) {
   s_lib.CExternalEntry_testSendMessage(
       JnaExternalContext.toNative(context), JnaExternalContext.toNative(msg));
 }
Пример #16
0
 public ExternalAlgorithmData cloneAlgorithmData(ExternalAlgorithmData data) {
   return JnaExternalAlgorithmData.fromNative(
       s_lib.CExternalEntry_cloneAlgorithmData(JnaExternalAlgorithmData.toNative(data)));
 }
Пример #17
0
 public void testAddFile(ExternalDataset dataset, ExternalDataFile extFile, boolean stream) {
   s_lib.CExternalEntry_testAddDataFile(
       JnaExternalDataset.toNative(dataset),
       JnaExternalDataFile.toNative(extFile),
       (byte) (stream ? 1 : 0));
 }
Пример #18
0
 public String testGetFileName(ExternalDataset dataset, String serializedKey) {
   JnaExternalDataset jnaDataset = (JnaExternalDataset) dataset;
   return s_lib.CExternalEntry_testGetDataFileName(
       JnaExternalDataset.toNative(dataset), serializedKey);
 }