48 mFluxModes(src.mFluxModes),
49 mReorderedReactions(src.mReorderedReactions)
98 const std::vector< CFluxMode > & FluxModes = pTask->
getFluxModes();
101 *ostream <<
"\tNumber of Modes:\t" << FluxModes.size() << std::endl;
104 *ostream <<
"#\t\tReactions\tEquations" << std::endl;
106 std::vector< CFluxMode >::const_iterator itMode = FluxModes.begin();
107 std::vector< CFluxMode >::const_iterator endMode = FluxModes.end();
111 for (j = 0; itMode != endMode; ++itMode, j++)
115 if (itMode->isReversible() ==
true)
116 *ostream <<
"\tReversible";
118 *ostream <<
"\tIrreversible";
124 std::string::size_type start = 0;
125 std::string::size_type end = 0;
127 for (; itReaction != endReaction; ++itReaction)
129 if (itReaction != itMode->begin())
132 end = Description.find(
"\n", start);
133 *ostream <<
"\t" << Description.substr(start, end - start);
139 *ostream << std::endl;
143 *ostream <<
"#\tNet Reaction\tInternal Species" << std::endl;
145 itMode = FluxModes.begin();
147 for (j = 0; itMode != endMode; ++itMode, j++)
154 *ostream << std::endl;
163 for (; itReaction != endReaction; ++itReaction)
165 *ostream <<
"\t" << (*itReaction)->getObjectName();
168 *ostream << std::endl;
170 itMode = FluxModes.begin();
173 for (j = 0; itMode != endMode; ++itMode, j++)
179 for (k = 0; itReaction != endReaction; ++itReaction, k++)
181 *ostream <<
"\t" << itMode->getMultiplier(k);
184 *ostream << std::endl;
187 *ostream << std::endl;
197 for (; itSpecies != endSpecies; ++itSpecies)
202 *ostream << std::endl;
204 itMode = FluxModes.begin();
206 for (j = 0; itMode != endMode; ++itMode, j++)
212 for (; itSpecies != endSpecies; ++itSpecies)
214 std::pair< C_FLOAT64, C_FLOAT64 > Changes =
219 if (Changes.first > 100.0 * std::numeric_limits< C_FLOAT64 >::epsilon() ||
220 Changes.second > 100.0 * std::numeric_limits< C_FLOAT64 >::epsilon())
222 *ostream <<
"-" << Changes.first <<
" | +" << Changes.second;
226 *ostream << std::endl;
229 *ostream << std::endl;
std::string getNetReaction(const CFluxMode &fluxMode) const
std::string getReactionEquation(const std::map< size_t, C_FLOAT64 >::const_iterator &itReaction) const
std::pair< C_FLOAT64, C_FLOAT64 > getSpeciesChanges(const CFluxMode &fluxMode, const CMetab &metab) const
std::string getFluxModeDescription(const CFluxMode &fluxMode) const
const CCopasiVector< CMetab > & getMetabolites() const
void initializeParameter()
CEFMProblem(const CCopasiContainer *pParent=NULL)
const std::vector< CFluxMode > & getFluxModes() const
virtual bool initialize()
const std::vector< CFluxMode > & getFluxModes() const
std::string getInternalSpecies(const CFluxMode &fluxMode) const
virtual bool setCallBack(CProcessReport *pCallBack)
const std::vector< const CReaction * > & getReorderedReactions() const
std::vector< const CReaction * > mReorderedReactions
std::vector< CFluxMode > mFluxModes
virtual void printResult(std::ostream *ostream) const
std::map< size_t, C_FLOAT64 >::const_iterator const_iterator
virtual bool setCallBack(CProcessReport *pCallBack)
virtual bool elevateChildren()
virtual bool initialize()
CCopasiContainer * getObjectParent() const