COPASI API  4.16.103
CStochNextReactionMethod.h
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/trajectory/CStochNextReactionMethod.h,v $
3  $Revision: 1.11 $
4  $Name: $
5  $Author: shoops $
6  $Date: 2011/03/07 19:34:14 $
7  End CVS Header */
8 
9 // Copyright (C) 2011 - 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) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
20 // Properties, Inc. and EML Research, gGmbH.
21 // All rights reserved.
22 
23 #ifndef COPASI_CStochNextReactionMethod
24 #define COPASI_CStochNextReactionMethod
25 
28 
30 {
31 private:
32  // Private attributes
33 
34  /**
35  * The set of putative reactions and associated times at which each reaction occurs.
36  * This is represented as a priority queue, indexed on the reaction time.
37  */
39 
40  /**
41  * Initialization.
42  */
43  void initMethod(C_FLOAT64 start_time);
44 
45 public:
46  /**
47  * Default constructor
48  */
50 
51  /**
52  * Do one iteration of the simulation
53  * @return Current simulation time or -1 if error.
54  */
56 
57  /**
58  * print internal information (for debugging)
59  */
60  //void printDebugInfo();
61 
62 private:
63  /**
64  * Set up the priority queue.
65  * @param start_time The time at which the simulation starts.
66  */
67  void setupPriorityQueue(C_FLOAT64 start_time = 0);
68  /**
69  * Update the priority queue
70  */
71  void updatePriorityQueue(size_t reaction_index, C_FLOAT64 time);
72 };
73 
74 #endif
void setupPriorityQueue(C_FLOAT64 start_time=0)
void initMethod(C_FLOAT64 start_time)
C_FLOAT64 doSingleStep(C_FLOAT64 time, C_FLOAT64 endTime)
void updatePriorityQueue(size_t reaction_index, C_FLOAT64 time)
#define C_FLOAT64
Definition: copasi.h:92