-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathODECommandLine.h
100 lines (70 loc) · 2.55 KB
/
ODECommandLine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/******************************************************************************
*/
#ifndef _ODE_COMMAND_LINE_H_
#define _ODE_COMMAND_LINE_H_
#include <iostream>
#include <string>
#include <vector>
#include <exception>
#include "stdio.h"
#include "stdlib.h"
#include "boost/program_options.hpp"
#include "boost/filesystem.hpp"
#include "Input_tag.h"
#include "ModelTag.h"
#include "DenseVectorSubset.h"
namespace STOCHKIT
{
class ODECommandLine
{
public:
ODECommandLine(int ac, char* av[]);
std::string getModelFileName() const;
std::string getODETemplateFileName() const;
double getSimulationTime() const;
std::size_t getIntervals() const;
std::vector<std::size_t> getSpeciesSubset() const;
std::vector<std::string> getRateConstantsSubset() const;
std::vector<std::string> getParametersSubset() const;
bool getParameterFromParametersList() const;
bool getLabel() const;//true if labeling columns
std::vector<std::string> getSpeciesNames() const;
std::string getOutputDir() const;
bool getUseExistingOutputDirs() const;
bool getForce() const;
std::string getGeneratedCodeDir() const;
std::string getCmdArgs() const;
bool getSensiFlag() const;
double getRTOL() const;
double getATOL() const;
unsigned int getMXSTEPS() const;
protected:
void parse(int ac, char* av[]);
private:
boost::program_options::variables_map vm;
boost::program_options::options_description visible;
boost::program_options::options_description hidden;
boost::program_options::options_description combined;
std::string modelFileName;
std::string ODETemplateFileName;
double simulationTime, RTOL, ATOL;
unsigned int MXSTEPS;
std::size_t intervals;
std::vector<std::string> species;//command line values: could be species indices or names
std::vector<std::size_t> speciesSubset;//indices, only nonempty if species is nonempty
std::vector<std::string> parameters;//command line values: must be parameter names
std::vector<std::string> rateconstants;//command line values: must be reaction names
bool label;//true if keeping labels
std::vector<std::string> speciesNames;//species names/labels
bool force;
std::string outputDir;
bool parameter_from_parameters_list; // if there is a parameter that is from parameters' list
// rather than rate constants or initial conditions
// we need to consider it as mixed for sensitivity anaylsis
bool sensi;
bool useExistingOutputDirs;
std::string generatedCodeDir;
std::string cmdArgs;
};
}
#endif