COPASI API  4.16.103
CModelAnalyzer.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/model/CModelAnalyzer.h,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: ssahle $
6 // $Date: 2007/09/18 00:14:54 $
7 // End CVS Header
8 
9 // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc. and EML Research, gGmbH.
11 // All rights reserved.
12 
13 #ifndef COPASI_CModelAnalyzer
14 #define COPASI_CModelAnalyzer
15 
16 #include <vector>
17 #include <string>
18 
20 
21 class CModel;
22 class CReaction;
23 
25  {
26  public:
27 
28  CModelAnalyzer(const CModel* model);
29 
30  void writeReport(std::ostream & os, bool rt, bool verbose) const;
31 
32  protected:
34  {
35  public:
39  {}
40 
41  std::string mReactionName;
44  std::vector<std::string> mChemEqSubs;
45  std::vector<std::string> mChemEqProds;
46  std::vector<std::string> mChemEqMods;
47 
48  std::vector<std::string> mNotMetabolite;
49  std::vector<std::string> mFunctionParametersSubs;
50  std::vector<std::string> mFunctionParametersProds;
51  std::vector<std::string> mFunctionParametersMods;
52  std::vector<std::string> mFunctionParametersParams;
53  std::vector<std::string> mFunctionParametersVol;
54  std::vector<std::string> mFunctionParametersTime;
55  std::vector<std::string> mFunctionParametersVar;
56 
58 
59  /**
60  * writes a text report about the function to the stream. The return value
61  * indicates if a problem was reported.
62  */
63  bool writeResult(std::ostream & os, bool rt, bool verbose) const;
64  };
65 
66  void checkModel(const CModel* model);
67 
68  ReactionResult checkReaction(const CReaction* reaction);
69 
70  //data
71 
72  const CModel* mpModel;
73 
74  std::vector<ReactionResult> mReactionResults;
75  };
76 
77 #endif
std::vector< std::string > mChemEqProds
CFunctionAnalyzer::Result mFunctionResult
const CModel * mpModel
std::vector< std::string > mFunctionParametersProds
std::vector< std::string > mFunctionParametersVol
void checkModel(const CModel *model)
std::vector< std::string > mFunctionParametersSubs
bool writeResult(std::ostream &os, bool rt, bool verbose) const
std::vector< std::string > mFunctionParametersMods
std::vector< std::string > mFunctionParametersTime
CModelAnalyzer(const CModel *model)
std::vector< std::string > mChemEqSubs
std::vector< std::string > mFunctionParametersVar
std::vector< std::string > mNotMetabolite
std::vector< ReactionResult > mReactionResults
Definition: CModel.h:50
ReactionResult checkReaction(const CReaction *reaction)
std::vector< std::string > mFunctionParametersParams
void writeReport(std::ostream &os, bool rt, bool verbose) const
std::vector< std::string > mChemEqMods