Definition at line 81 of file ReactionPath.h.
Public Types | |
typedef map< size_t, double > | rxn_path_map |
Public Member Functions | |
Path (SpeciesNode *begin, SpeciesNode *end) | |
Constructor. | |
virtual | ~Path () |
Destructor. | |
void | addReaction (size_t rxnNumber, double value, const string &label="") |
Add a reaction to the path. | |
const SpeciesNode * | begin () const |
Upstream node. | |
SpeciesNode * | begin () |
const SpeciesNode * | end () const |
Downstream node. | |
SpeciesNode * | end () |
SpeciesNode * | otherNode (SpeciesNode *n) |
If n is one of the nodes this path connects, then the other node is returned. | |
double | flow () |
The total flow in this path. | |
void | setFlow (double v) |
int | nReactions () |
Number of reactions contributing to this path. | |
const rxn_path_map & | reactionMap () |
Map from reaction number to flow from that reaction in this path. | |
void | writeLabel (std::ostream &s, double threshold=0.005) |
Write the label for a path connecting two species, indicating the percent of the total flow due to each reaction. | |
Protected Attributes | |
map< string, double > | m_label |
SpeciesNode * | m_a |
SpeciesNode * | m_b |
rxn_path_map | m_rxn |
double | m_total = 0.0 |
typedef map<size_t, double> rxn_path_map |
Definition at line 84 of file ReactionPath.h.
Path | ( | SpeciesNode * | begin, |
SpeciesNode * | end | ||
) |
Constructor.
Construct a one-way path from begin
to end
.
Definition at line 43 of file ReactionPath.cpp.
|
inlinevirtual |
Destructor.
Definition at line 92 of file ReactionPath.h.
void addReaction | ( | size_t | rxnNumber, |
double | value, | ||
const string & | label = "" |
||
) |
Add a reaction to the path.
Increment the flow from this reaction, the total flow, and the flow associated with this label.
Definition at line 50 of file ReactionPath.cpp.
|
inline |
Upstream node.
Definition at line 101 of file ReactionPath.h.
|
inline |
Definition at line 104 of file ReactionPath.h.
|
inline |
Downstream node.
Definition at line 109 of file ReactionPath.h.
|
inline |
Definition at line 112 of file ReactionPath.h.
|
inline |
If n
is one of the nodes this path connects, then the other node is returned.
Otherwise zero is returned.
Definition at line 120 of file ReactionPath.h.
|
inline |
The total flow in this path.
Definition at line 125 of file ReactionPath.h.
|
inline |
Definition at line 128 of file ReactionPath.h.
|
inline |
Number of reactions contributing to this path.
Definition at line 133 of file ReactionPath.h.
|
inline |
Map from reaction number to flow from that reaction in this path.
Definition at line 138 of file ReactionPath.h.
void writeLabel | ( | std::ostream & | s, |
double | threshold = 0.005 |
||
) |
Write the label for a path connecting two species, indicating the percent of the total flow due to each reaction.
Definition at line 59 of file ReactionPath.cpp.
|
protected |
Definition at line 149 of file ReactionPath.h.
|
protected |
Definition at line 150 of file ReactionPath.h.
|
protected |
Definition at line 150 of file ReactionPath.h.
|
protected |
Definition at line 151 of file ReactionPath.h.
|
protected |
Definition at line 152 of file ReactionPath.h.