#include <CStochDirectMethod.h>
List of all members.
Constructor & Destructor Documentation
CStochDirectMethod::CStochDirectMethod |
( |
const CCopasiContainer * |
pParent = NULL | ) |
[protected] |
Default constructor.
- Parameters:
-
Copy constructor.
- Parameters:
-
CStochDirectMethod::~CStochDirectMethod |
( |
| ) |
|
Member Function Documentation
void CStochDirectMethod::calculateAmu |
( |
const C_INT32 & |
index | ) |
[protected] |
Calculate the propensity of the indexed reaction
- Parameters:
-
C_FLOAT64 CStochDirectMethod::doSingleStep |
( |
const C_FLOAT64 & |
curTime, |
|
|
const C_FLOAT64 & |
endTime |
|
) |
| [protected] |
Fire the next reaction if it fire before the endTime
- Parameters:
-
const | C_FLOAT64 & curTime |
const | C_FLOAT64 & endTime |
- Returns:
- C_FLOAT64 timeAfterStep
bool CStochDirectMethod::elevateChildren |
( |
| ) |
[virtual] |
This methods must be called to elevate subgroups to derived objects. The default implementation does nothing.
- Returns:
- bool success
Reimplemented from CCopasiParameterGroup.
bool CStochDirectMethod::isValidProblem |
( |
const CCopasiProblem * |
pProblem | ) |
[virtual] |
Check if the method is suitable for this problem
- Returns:
- bool suitability of the method
Reimplemented from CTrajectoryMethod.
void CStochDirectMethod::start |
( |
const CState * |
initialState | ) |
[virtual] |
This instructs the method to prepare for integration starting with the initialState given.
- Parameters:
-
const CState * | initialState |
Reimplemented from CTrajectoryMethod.
This instructs the method to calculate a time step of deltaT starting with the current state, i.e., the result of the previous step. The new state (after deltaT) is expected in the current state. The return value is the actual timestep taken.
- Parameters:
-
- Returns:
- Status status
Reimplemented from CTrajectoryMethod.
Friends And Related Function Documentation
Member Data Documentation
Total propensity (sum over mAmu[i])
A vector of reaction propensities
A boolean flag indicating whether correction for higher order reactions need to be applied
max number of single stochastic steps to do in one step()
A boolean flag indicating whether the maximum steps have been reached. This is used to avoid multiple messages.
The method internal state which contains particle rounded particle numbers.
The index of the next reaction which fires
The time the next reaction fires
The particle and reaction numbers
A pointer to the instance of CModel being used.
The random number generator
A vector containing dependency information to minimize the required updates.
The documentation for this class was generated from the following files: