roadrunner  2.6.0
Fast simulator for SBML models
rrCompiledModelState.h
1 #ifndef rrModelStateH
2 #define rrModelStateH
3 
4 #include "rrOSSpecifics.h"
5 #include <vector>
6 
7 
8 using std::vector;
9 
10 
11 namespace rr
12 {
13 
14 class CompiledExecutableModel;
15 
25 class RR_DECLSPEC CompiledModelState
26 {
27  protected:
28  public:
29  //Todo: Lot of stuff is wrong here.. ??
30  double mTime;
31  std::vector<double> mBoundarySpeciesConcentrations;
32  std::vector<double> mCompartmentVolumes;
33  std::vector<double> mConservedTotals;
34  std::vector<double> mDyDt;
35  std::vector<double> mFloatingSpeciesConcentrations;
36  std::vector<double> mGlobalParameters;
37  std::vector<bool> mPreviousEventStatusArray;
38  std::vector<double> mRateRules;
39  std::vector<double> mRates;
40  std::vector<double> mModifiableSpeciesReferences;
41  std::vector<bool> mEventStatusArray;
42  std::vector<double> mEventTests;
43 
44  void InitializeFromModel(CompiledExecutableModel& model);
45 
46  public:
48  void AssignToModel(CompiledExecutableModel& model);
49 };
50 
51 }
52 #endif
Both the CModelGenerator and the CSharpModelGenerator use the same paradigm of producing source code,...
Definition: rrCompiledExecutableModel.h:43
Saves the 'state' of a Model.
Definition: rrCompiledModelState.h:26