roadrunner  2.6.0
Fast simulator for SBML models
ExecutableModelFactory.h
1 /*
2  * ExecutableModelFactory.h
3  *
4  * Created on: Dec 11, 2014
5  * Author: andy
6  */
7 
8 #ifndef EXECUTABLEMODELFACTORY_H_
9 #define EXECUTABLEMODELFACTORY_H_
10 
11 #include "rrExecutableModel.h"
12 #include "Dictionary.h"
13 #include <string>
14 #include <iostream>
15 
16 
17 namespace rr
18 {
19 
23 class RR_DECLSPEC ExecutableModelFactory
24 {
25 public:
34  static ExecutableModel *createModel(const libsbml::SBMLDocument* sbml, const std::string& md5, const Dictionary* dict = 0);
35  /*
36  * Creates an executable model from a saved binary representation
37  *
38  * @param in: input stream with the representation of the model at the front
39  * @param modelGeneratorOpt: which functions should be generated, see LoadSBMLOptions::MUTABLE_INITIAL_CONDITIONS
40  * and LoadSBMLOptions::READ_ONLY
41  *
42  */
43  static ExecutableModel *createModel(std::istream& in, uint modelGeneratorOpt);
44 
45  /*
46  * Regenerate an executable model from a saved sbml document
47  *
48  * @param doc: sbml document that generate the new executable model from
49  * @param LoadSBMLOptions: load options
50  *
51  */
52  static ExecutableModel *regenerateModel(ExecutableModel* oldModel, libsbml::SBMLDocument* doc, uint options);
53 };
54 
55 } /* namespace rr */
56 
57 #endif /* EXECUTABLEMODELFACTORY_H_ */
This class is frozen, no new features A dictionary interface that objects can implement.
Definition: Dictionary.h:30
A factory class to create ExecutableModel objects.
Definition: ExecutableModelFactory.h:24
Base class for all code generation systems; allows compiling and evaluating the model.
Definition: rrExecutableModel.h:118
Base class for all code generators in RoadRunner.