COPASI API  4.40.278
CFunctionAnalyzer Class Reference

#include <CFunctionAnalyzer.h>

Classes

class  CValue
 
class  Result
 

Public Types

enum  Mode { NOOBJECT , GENERAL , POSITIVE , ACTUAL }
 

Public Member Functions

 CFunctionAnalyzer (const CFunction *f, const CReaction *reaction=NULL)
 
void checkKineticFunction (const CFunction *f, const CReaction *reaction=NULL)
 
const ResultgetResult () const
 

Static Public Member Functions

static void constructCallParameters (const CFunctionParameters &fp, std::vector< CValue > &callParameters, bool posi)
 
static CValue evaluateNode (const CEvaluationNode *node, const std::vector< CValue > &callParameters, Mode mode)
 
static std::string write (int level, bool rt, const std::string &text, const std::string &longText)
 

Static Protected Member Functions

static void constructCallParametersActualValues (std::vector< CValue > &callParameters, const CReaction *reaction)
 

Protected Attributes

Result mResult
 

Detailed Description

This class performs an analysis of a kinetic function. The function to analyze is passed to the constructor. The result can be retrieved with the getResult() method. The Result class has methods for reporting. The reporting methods may assume that the function (and possibly the reaction) still exists, so don't delete the function between the analysis and the reporting of the results!

Member Enumeration Documentation

◆ Mode

Mode tells how to interpret an object in CValue arithmetics. NOOBJECT means objects are invalid (e.g. for functions, where no object nodes should occur). GENERAL means concentrations and volumes are positive, all other values positive, zero, or negative. POSITIVE means all objects are positive. ACTUAL means the actual value is used for local parameters and constant values.

Enumerator
NOOBJECT 
GENERAL 
POSITIVE 
ACTUAL 

Constructor & Destructor Documentation

◆ CFunctionAnalyzer()

CFunctionAnalyzer::CFunctionAnalyzer ( const CFunction f,
const CReaction reaction = NULL 
)

Member Function Documentation

◆ checkKineticFunction()

◆ constructCallParameters()

◆ constructCallParametersActualValues()

◆ evaluateNode()

◆ getResult()

const CFunctionAnalyzer::Result & CFunctionAnalyzer::getResult ( ) const

◆ write()

std::string CFunctionAnalyzer::write ( int  level,
bool  rt,
const std::string &  text,
const std::string &  longText 
)
static

Member Data Documentation

◆ mResult

Result CFunctionAnalyzer::mResult
protected

Referenced by checkKineticFunction(), and getResult().


The documentation for this class was generated from the following files: