COPASI API  4.16.103
CMassAction.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/function/CMassAction.h,v $
3 // $Revision: 1.29 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2012/05/16 23:11:32 $
7 // End CVS Header
8 
9 // Copyright (C) 2012 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 /**
19  * CMassAction
20  *
21  * Created for Copasi by Stefan Hoops
22  * (C) Stefan Hoops 2001
23  */
24 
25 #ifndef COPASI_CMassAction
26 #define COPASI_CMassAction
27 
28 #include "function/CFunction.h"
29 
30 /** @dia:pos 62.0314,41.4407 */
31 /** @dia:route CFunction; v,58.2,35.55,39.4413,82.281,41.4407 */
32 class CMassAction : public CFunction
33 {
34  // Static Attributes
35 public:
36  static const char * Infix[];
37 
38  // Operations
39 public:
40  /**
41  * Default constructor
42  * @param const std::string & name (default: "NoName")
43  * @param const CCopasiContainer * pParent (default: NULL)
44  */
45  CMassAction(const std::string & name = "NoName",
46  const CCopasiContainer * pParent = NULL);
47 
48  /**
49  * Copy constructor
50  * @param "const CFunction &" src
51  * @param const CCopasiContainer * pParent (default: NULL)
52  */
53  CMassAction(const CFunction & src,
54  const CCopasiContainer * pParent = NULL);
55 
56  /**
57  * Specified constructor
58  * @param const CCopasiContainer * pParent (default: NULL)
59  */
60  CMassAction(const TriLogic & reversible,
61  const CCopasiContainer * pParent = NULL);
62 
63  /**
64  * Destructor
65  */
66  ~CMassAction();
67 
68  /**
69  * Calculates the value of the function
70  * @param const CCallParameters<C_FLOAT64> & callParameters
71  * @return const C_FLOAT64 & result
72  */
73  virtual const C_FLOAT64 &
74  calcValue(const CCallParameters<C_FLOAT64> & callParameters);
75 
76  /**
77  * Returns whether the function depends on the given parameter
78  * &param const void * parameter
79  * &param const CCallParameters<C_FLOAT64> & callParameters
80  * &param bool dependsOn
81  */
82  virtual bool dependsOn(const C_FLOAT64 * parameter,
83  const CCallParameters<C_FLOAT64> & callParameters) const;
84 
85  /**
86  * Set the infix description of the tree and compile it.
87  * @param const std::string & infix
88  * @return bool success
89  */
90  virtual bool setInfix(const std::string & infix);
91 
92  /**
93  * Compile the evaluation tree.
94  */
95  virtual bool compile();
96 
97  virtual std::string writeMathML(const std::vector< std::vector< std::string > > & variables,
98  bool expand = true, bool fullExpand = true) const;
99 
100 };
101 
102 #endif // COPASI_CMassAction
virtual const C_FLOAT64 & calcValue(const CCallParameters< C_FLOAT64 > &callParameters)
Definition: CMassAction.cpp:69
static const char * Infix[]
Definition: CMassAction.h:34
virtual bool compile()
virtual std::string writeMathML(const std::vector< std::vector< std::string > > &variables, bool expand=true, bool fullExpand=true) const
TriLogic
Definition: copasi.h:125
CMassAction(const std::string &name="NoName", const CCopasiContainer *pParent=NULL)
Definition: CMassAction.cpp:38
virtual bool dependsOn(const C_FLOAT64 *parameter, const CCallParameters< C_FLOAT64 > &callParameters) const
#define C_FLOAT64
Definition: copasi.h:92
The class for handling a chemical kinetic function.
Definition: CFunction.h:29
virtual bool setInfix(const std::string &infix)