|
COPASI API
4.40.278
|
#include <CMathDelay.h>
Public Member Functions | |
| void | addValueObject (CMath::DelayValueData::iterator &itValueData, const size_t &index, CMathObject *pValueObject) |
| void | calculateDelayValues (const bool &useMoieties) |
| CMathDelay () | |
| void | copy (const CMathDelay &src, CMathContainer &container) |
| void | create (CMath::DelayData::iterator &itDelayData, const size_t &delayValueCount, CMathContainer &container, CMathObject *pLagObject) |
| void | createUpdateSequences () |
| void | modifyMathObject (CMath::DelayValueData::iterator &itValueData, const size_t &index) |
| void | relocate (const CMathContainer *pContainer, const std::vector< CMath::sRelocate > &relocations) |
| virtual | ~CMathDelay () |
Private Attributes | |
| CMathContainer * | mpContainer |
| CMathObject * | mpLagObject |
| CVector< CMathObject * > | mValueObjects |
| CCore::CUpdateSequence | mValueSequence |
| CCore::CUpdateSequence | mValueSequenceReduced |
| CMathDelay::CMathDelay | ( | ) |
Default Constructor
|
virtual |
Destructor
| void CMathDelay::addValueObject | ( | CMath::DelayValueData::iterator & | itValueData, |
| const size_t & | index, | ||
| CMathObject * | pValueObject | ||
| ) |
Add a value object to the delay
| CMath::DelayValueData::iterator | & itValueData |
| const | size_t & index |
| CMathObject | * pValueObject |
References mpContainer, mValueObjects, CMathObject::setExpression(), and CVectorCore< CType >::size().
Referenced by CMathContainer::createDelays().
| void CMathDelay::calculateDelayValues | ( | const bool & | useMoieties | ) |
Calculate the delay values.
| const | bool & useMoieties |
References CMathContainer::applyUpdateSequence(), mpContainer, mValueSequence, and mValueSequenceReduced.
Referenced by CMathContainer::updateHistoryValues().
| void CMathDelay::copy | ( | const CMathDelay & | src, |
| CMathContainer & | container | ||
| ) |
Copy an existing object
| const | CMathDelay & src |
| CMathContainer | & container |
| void CMathDelay::create | ( | CMath::DelayData::iterator & | itDelayData, |
| const size_t & | delayValueCount, | ||
| CMathContainer & | container, | ||
| CMathObject * | pLagObject | ||
| ) |
Create and compile the delay
| CMath::DelayData::iterator | & itDelayData |
| const | size_t & delayValueCount |
| CMathContainer | & container |
| CMathObject | * pLagObject |
References mpContainer, mpLagObject, mValueObjects, CVector< CType >::resize(), and CMathObject::setExpression().
Referenced by CMathContainer::createDelays().
| void CMathDelay::createUpdateSequences | ( | ) |
Create the update sequences required for event processing.
References CVectorCore< CType >::array(), CCore::DelayValues, CMathContainer::getStateObjects(), CMathContainer::getTransientDependencies(), CMathDependencyGraph::getUpdateSequence(), mpContainer, mValueObjects, mValueSequence, mValueSequenceReduced, CVectorCore< CType >::size(), and CCore::UseMoieties.
Referenced by CMathContainer::compile().
| void CMathDelay::modifyMathObject | ( | CMath::DelayValueData::iterator & | itValueData, |
| const size_t & | index | ||
| ) |
Update the expression containing the delay
| CMath::DelayValueData::iterator | & itValueData |
| const | size_t & index |
References CEvaluationTree::getInfix(), CMathObject::getValuePointer(), CEvaluationTree::isBoolean(), mpContainer, mpLagObject, mValueObjects, and pointerToString().
Referenced by CMathContainer::createDelays().
| void CMathDelay::relocate | ( | const CMathContainer * | pContainer, |
| const std::vector< CMath::sRelocate > & | relocations | ||
| ) |
The objects and values are relocated
| const | CMathContainer * pContainer |
| const | std::vector< CMath::sRelocate > & relocations |
References CVectorCore< CType >::array(), mpLagObject, mValueObjects, CMathContainer::relocateObject(), and CVectorCore< CType >::size().
|
private |
A pointer to the container the delay belongs to
Referenced by addValueObject(), calculateDelayValues(), create(), createUpdateSequences(), and modifyMathObject().
|
private |
The object the lag of the delay
Referenced by create(), modifyMathObject(), and relocate().
|
private |
The object for the delayed value
Referenced by addValueObject(), create(), createUpdateSequences(), modifyMathObject(), and relocate().
|
private |
The sequence of calculations required to determine the delayed value
Referenced by calculateDelayValues(), and createUpdateSequences().
|
private |
The sequence of calculations required to determine the delayed value based on the reduced state
Referenced by calculateDelayValues(), and createUpdateSequences().