COPASI API  4.16.103
Functions
CMCAProblem.cpp File Reference
#include <string>
#include "copasi.h"
#include "CMCAProblem.h"
#include "CMCATask.h"
#include "CSteadyStateTask.h"
#include "CopasiDataModel/CCopasiDataModel.h"
#include "report/CCopasiRootContainer.h"
#include "model/CModel.h"
#include "model/CState.h"
#include "report/CKeyFactory.h"
Include dependency graph for CMCAProblem.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CMCAProblem &o)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CMCAProblem o 
)

Output stream operator. Prints description of the problem incl. the subtask

Parameters
ostream& os
constCMCAProblem & A
Returns
ostream & os

Definition at line 185 of file CMCAProblem.cpp.

References CCopasiTask::getDescription(), CMCAProblem::getSubTask(), CMCAProblem::isSteadyStateRequested(), and CCopasiTask::CDescription::print().

186 {
187  os << "Problem Description:" << std::endl;
188 
189  //os << "Subtask: " << std::endl;
190 
191  if (o.isSteadyStateRequested())
192  {
193  os << "Calculation of a steady state is requested before the MCA." << std::endl << std::endl;
194 
195  if (o.getSubTask())
196  {
197  //os << "" << std::endl;
198  o.getSubTask()->getDescription().print(&os);
199  }
200  else
201  {
202  os << "However an error occurred. Please report this as a bug." << std::endl;
203  }
204  }
205  else
206  {
207  os << "MCA is performed on the current state (which is not necessarily a steady state)." << std::endl;
208  }
209 
210  os << std::endl;
211 
212  return os;
213 }
bool isSteadyStateRequested() const
const CDescription & getDescription() const
CSteadyStateTask * getSubTask() const
virtual void print(std::ostream *ostream) const