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

Go to the source code of this file.

Functions

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

Function Documentation

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

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

Parameters
ostream& os
constCLNAProblem & A
Returns
ostream & os

Definition at line 158 of file CLNAProblem.cpp.

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

159 {
160  os << "Problem Description:" << std::endl;
161 
162  if (o.isSteadyStateRequested())
163  {
164  os << "Calculation of a steady state is requested before the LNA." << std::endl << std::endl;
165 
166  if (o.getSubTask())
167  {
168  o.getSubTask()->getDescription().print(&os);
169  }
170  else
171  {
172  os << "However an error occurred. Please report this as a bug." << std::endl;
173  }
174  }
175  else
176  {
177  os << "LNA is performed on the current state (which is not necessarily a steady state)." << std::endl;
178  }
179 
180  os << std::endl;
181 
182  return os;
183 }
const CDescription & getDescription() const
CSteadyStateTask * getSubTask() const
virtual void print(std::ostream *ostream) const
bool isSteadyStateRequested() const