COPASI API  4.16.103
CMiaseModel.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/miase/CMiaseModel.h,v $
3 // $Revision: 1.6 $
4 // $Name: $
5 // $Author: akoenig $
6 // $Date: 2008/04/02 12:14:39 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 #ifndef CMIASEMODEL
15 #define CMIASEMODEL
16 
17 #include "CMiaseBase.h"
18 
19 class CMiaseChange : public CMiaseBase
20  {
21 
22  public:
23 
24  CMiaseChange();
25 
26  ~CMiaseChange();
27 
28  std::string getTarget();
29 
30  void setTarget(std::string target);
31 
32  enum TYPE{ATTRIBUTE, MATH };
33 
34  virtual TYPE getType() = 0;
35 
37 
38  private:
39 
40  std::string mTarget;
41  };
42 
44  {
45 
46  public:
47 
49 
51 
52  std::string getNewValue();
53 
54  void setNewValue(std::string newValue);
55 
56  virtual CMiaseChange::TYPE getType();
57 
58  private:
59 
60  std::string mNewValue;
61  };
62 
64  {
65 
66  public:
67 
69 
71 
72  std::string getNewMath();
73 
74  void setNewMath(std::string newMath);
75 
76  virtual CMiaseChange::TYPE getType();
77 
78  private:
79 
80  std::string mNewMath;
81  };
82 
84  {
85 
86  public:
87 
88  CMiaseModel();
89 
90  ~CMiaseModel();
91 
92  std::string getType();
93  std::string getSource();
94 
95  void setType(std::string type);
96  void setSource(std::string source);
97 
98  void addChange (CMiaseChange* chnage);
99 
100  CMiaseChange* getChange(int num);
102  int getNumOfChanges();
103 
104  private:
105 
106  std::string mType;
107  std::string mSource;
108 
109  std::vector < CMiaseChange* > mListOfChanges;
110  };
111 
112 #endif //CMIASEMODEL
std::string getNewValue()
Definition: CMiaseModel.cpp:47
void setNewValue(std::string newValue)
Definition: CMiaseModel.cpp:52
std::string mNewMath
Definition: CMiaseModel.h:80
void setNewMath(std::string newMath)
Definition: CMiaseModel.cpp:77
void addChange(CMiaseChange *chnage)
std::string getTarget()
Definition: CMiaseModel.cpp:22
int getNumOfChanges()
std::string getNewMath()
Definition: CMiaseModel.cpp:72
std::string mSource
Definition: CMiaseModel.h:107
CMiaseChange * getChange(int num)
virtual TYPE getType()=0
std::vector< CMiaseChange * > mListOfChanges
Definition: CMiaseModel.h:109
virtual CMiaseChange::TYPE getType()
Definition: CMiaseModel.cpp:42
virtual CMiaseChange::TYPE getType()
Definition: CMiaseModel.cpp:67
std::string mType
Definition: CMiaseModel.h:106
void setTarget(std::string target)
Definition: CMiaseModel.cpp:27
std::string mNewValue
Definition: CMiaseModel.h:60
std::string mTarget
Definition: CMiaseModel.h:40
std::string getType()
Definition: CMiaseModel.cpp:93
std::string getSource()
Definition: CMiaseModel.cpp:98
CMiaseChange * getLastChange()
void setType(std::string type)
void setSource(std::string source)