Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
telplugins_jobs_api.h
1 #ifndef telplugins_jobs_apiH
2 #define telplugins_jobs_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 
83 TLP_C_DS TELHandle tlp_cc loadSBMLFromFileJobEx(TELHandle handle, const char* fileName, bool reCompile);
84 
93 TLP_C_DS TELHandle tlp_cc loadSBMLFromFileJobs(TELHandle handles, const char* fileName, int nrOfThreads);
94 
102 TLP_C_DS TELHandle tlp_cc loadSBMLJob(TELHandle handle, const char* sbml);
103 
112 TLP_C_DS TELHandle tlp_cc loadSBMLJobEx(TELHandle handle, const char* sbml, bool reCompile);
113 
122 TLP_C_DS TELHandle tlp_cc loadSBMLJobs(TELHandle handles, const char* sbml, int nrOfThreads);
123 
133 TLP_C_DS TELHandle tlp_cc loadSBMLJobsEx(TELHandle handles, const char* sbml, int nrOfThreads, bool force_recompile);
134 
141 TLP_C_DS bool tlp_cc waitForJob(TELHandle handle);
142 
149 TLP_C_DS bool tlp_cc waitForJobs(TELHandle handle);
150 
157 TLP_C_DS bool tlp_cc isJobFinished(TELHandle handle);
158 
165 TLP_C_DS bool tlp_cc areJobsFinished(TELHandle handle);
166 
173 TLP_C_DS int tlp_cc getNumberOfRemainingJobs(TELHandle handle);
174 
181 TLP_C_DS bool tlp_cc freeJob(TELHandle handle, RRJobType jt);
182 
189 TLP_C_DS bool tlp_cc freeJobs(TELHandle handle);
190 
191 #if defined(__cplusplus)
192 }} //Extern "C" //namespace
193 #endif
194 
195 #endif