copasi API  0.1
Public Member Functions | Friends
CMathTrigger::CRootFinder Class Reference

#include <CMathTrigger.h>

Inheritance diagram for CMathTrigger::CRootFinder:
CCopasiContainer CCopasiObject

List of all members.

Public Member Functions

 CRootFinder (const CCopasiContainer *pParent=NULL)
 CRootFinder (const CRootFinder &src, const CCopasiContainer *pParent=NULL)
virtual ~CRootFinder ()
void initObjects ()
bool compile (std::vector< CCopasiContainer * > listOfContainer)
void determineDiscrete (const std::set< const CCopasiObject * > &stateVariables)
const bool & isDiscrete () const
const bool & isEquality () const
bool isTrue () const
CEvaluationNodegetTrueExpression () const
void toggle (const bool &equality)
void calculateInitialTrue ()
C_FLOAT64 * getRootValuePtr ()

Friends

class CMathTrigger

Constructor & Destructor Documentation

CMathTrigger::CRootFinder::CRootFinder ( const CCopasiContainer pParent = NULL)

Default constructor

Parameters:
constCCopasiContainer * pParent (default: NULL)
CMathTrigger::CRootFinder::CRootFinder ( const CRootFinder src,
const CCopasiContainer pParent = NULL 
)

Copy constructor

Parameters:
const CRoot &src
"constCCopasiContainer * pParent (default: NULL)
CMathTrigger::CRootFinder::~CRootFinder ( ) [virtual]

Destructor


Member Function Documentation

void CMathTrigger::CRootFinder::calculateInitialTrue ( )

Determine the truth value for the initial conditions.

bool CMathTrigger::CRootFinder::compile ( std::vector< CCopasiContainer * >  listOfContainer)

Compile the root finder

Parameters:
std::vector<CCopasiContainer * > listOfContainer
void CMathTrigger::CRootFinder::determineDiscrete ( const std::set< const CCopasiObject * > &  stateVariables)

Determine whether the root only changes during dicrete events. The root must be compiled before calling this method.

Parameters:
conststd::set< const CCopasiObject *> & stateVariables
C_FLOAT64 * CMathTrigger::CRootFinder::getRootValuePtr ( )

Retrieve a pointer to the current value of the root.

CEvaluationNode * CMathTrigger::CRootFinder::getTrueExpression ( ) const

Retrieve the expression evaluating the truth value

Returns:
CEvalutionNode * trueExpression
void CMathTrigger::CRootFinder::initObjects ( )

Initialize the contained object references.

Reimplemented from CCopasiContainer.

const bool & CMathTrigger::CRootFinder::isDiscrete ( ) const

Check whether the root change only during discrete events.

Returns:
const bool & isDiscrete
const bool & CMathTrigger::CRootFinder::isEquality ( ) const

Check whether the root is checked for equality.

Returns:
const bool & isEquality
bool CMathTrigger::CRootFinder::isTrue ( ) const

Check whether the root's current state is true .

Returns:
bool isTrue
void CMathTrigger::CRootFinder::toggle ( const bool &  equality)

Toggle the root status dependent on the processed equality status

Parameters:
constbool & equality

Friends And Related Function Documentation

friend class CMathTrigger [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines