COPASI API  4.16.103
CMiaseModel.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/miase/CMiaseModel.cpp,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 #include "CMiaseModel.h"
15 
17 {}
18 
20 {}
21 
23 {
24  return mTarget;
25 }
26 
27 void CMiaseChange::setTarget(std::string target)
28 {
29  mTarget = target;
30 }
31 
32 //*****************************************************************************
33 
35 {
36  mType = ATTRIBUTE;
37 }
38 
40 {}
41 
43 {
44  return mType;
45 }
46 
48 {
49  return mNewValue;
50 }
51 
52 void CMiaseChangeAttribute::setNewValue(std::string newValue)
53 {
54  mNewValue = newValue;
55 }
56 
57 //*****************************************************************************
58 
60 {
61  mType = MATH;
62 }
63 
65 {}
66 
68 {
69  return mType;
70 }
71 
73 {
74  return mNewMath;
75 }
76 
77 void CMiaseChangeMath::setNewMath(std::string newMath)
78 {
79  mNewMath = newMath;
80 }
81 
82 //*****************************************************************************
83 
85 {}
86 
88 {
89  //TODO:
90  //delete content of following vector: mListOfChanges
91 }
92 
93 std::string CMiaseModel::getType()
94 {
95  return mType;
96 }
97 
99 {
100  return mSource;
101 }
102 
103 void CMiaseModel::setType(std::string type)
104 {
105  mType = type;
106 }
107 
108 void CMiaseModel::setSource(std::string source)
109 {
110  mSource = source;
111 }
112 
114 {
115  mListOfChanges.push_back(change);
116 }
117 
119 {
120  return mListOfChanges[ num ];
121 }
122 
124 {
125  return mListOfChanges[ mListOfChanges.size() - 1];
126 }
127 
129 {
130  return mListOfChanges.size();
131 }
132 //*****************************************************************************
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)
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)