Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
teljobs_api.h
1 #ifndef teljobs_apiH
2 #define teljobs_apiH
3 #include "telplugins_exporter.h"
4 #include "telplugins_types.h"
5 //---------------------------------------------------------------------------
6 
7 #if defined(__cplusplus)
8 namespace tlpc
9 {
10 
11 extern "C" {
12 #endif
13 
18 typedef void (tlp_cc *callBackFunc)(void*);
19 
26 TLP_C_DS TELHandle tlp_cc simulateJob(TELHandle handle);
27 
37 TLP_C_DS TELHandle tlp_cc simulateJobEx(TELHandle handle, double timeStart,
38  double timeEnd, int numberOfPoints,
39  callBackFunc fn1, callBackFunc fn2, void* userData);
40 
48 TLP_C_DS TELHandle tlp_cc simulateJobs(TELHandle handles, int nrOfThreads);
49 
50 TLP_C_DS TELHandle tlp_cc simulateJobsEx(TELHandle handles, int nrOfThreads,
61  double timeStart, double timeEnd, int numberOfPoints,
62  callBackFunc fn1, callBackFunc fn2, void* userData);
63 
72 TLP_C_DS TELHandle tlp_cc loadSBMLFromFileJob(TELHandle handle, const char* fileName);
73 
82 TLP_C_DS TELHandle tlp_cc loadSBMLFromFileJobEx(TELHandle handle, const char* fileName, bool reCompile);
83 
92 TLP_C_DS TELHandle tlp_cc loadSBMLFromFileJobs(TELHandle handles, const char* fileName, int nrOfThreads);
93 
101 TLP_C_DS TELHandle tlp_cc loadSBMLJob(TELHandle handle, const char* sbml);
102 
111 TLP_C_DS TELHandle tlp_cc loadSBMLJobEx(TELHandle handle, const char* sbml, bool reCompile);
112 
121 TLP_C_DS TELHandle tlp_cc loadSBMLJobs(TELHandle handles, const char* sbml, int nrOfThreads);
122 
132 TLP_C_DS TELHandle tlp_cc loadSBMLJobsEx(TELHandle handles, const char* sbml, int nrOfThreads, bool force_recompile);
133 
140 TLP_C_DS bool tlp_cc waitForJob(TELHandle handle);
141 
148 TLP_C_DS bool tlp_cc waitForJobs(TELHandle handle);
149 
156 TLP_C_DS bool tlp_cc isJobFinished(TELHandle handle);
157 
164 TLP_C_DS bool tlp_cc areJobsFinished(TELHandle handle);
165 
172 TLP_C_DS int tlp_cc getNumberOfRemainingJobs(TELHandle handle);
173 
180 TLP_C_DS bool tlp_cc freeJob(TELHandle handle, RRJobType jt);
181 
188 TLP_C_DS bool tlp_cc freeJobs(TELHandle handle);
189 
190 #if defined(__cplusplus)
191 }} //Extern "C" //namespace
192 #endif
193 
194 #endif