86 bool SteadyStateRequested;
87 configBuffer.
getVariable(
"RepxSteadyStateAnalysis",
"bool" ,
88 &SteadyStateRequested,
119 const CState & CMCAProblem::getInitialState()
const
131 assert(pDataModel != NULL);
134 pSubTask = dynamic_cast<CSteadyStateTask *>((*pDataModel->
getTaskList())[
"Steady-State"]);
136 if (steadyStateRequested && pSubTask)
139 setValue(
"Steady-State", std::string(
""));
147 {
return (*
getValue(
"Steady-State").pKEY !=
"");}
157 if (pSubTask == NULL)
160 assert(pDataModel != NULL);
187 os <<
"Problem Description:" << std::endl;
193 os <<
"Calculation of a steady state is requested before the MCA." << std::endl << std::endl;
202 os <<
"However an error occurred. Please report this as a bug." << std::endl;
207 os <<
"MCA is performed on the current state (which is not necessarily a steady state)." << std::endl;
CCopasiDataModel * getObjectDataModel()
virtual void print(std::ostream *ostream) const
void setSteadyStateRequested(const bool &steadyStateRequested)
CCopasiObject * get(const std::string &key)
void setInitialState(const CState &initialState)
virtual void printResult(std::ostream *ostream) const
void printResult(std::ostream *ostream) const
bool isSteadyStateRequested() const
const CDescription & getDescription() const
CMCAProblem(const CCopasiContainer *pParent=NULL)
std::ostream & operator<<(std::ostream &os, const CMCAProblem &o)
virtual bool setModel(CModel *pModel)
const Value & getValue() const
CCopasiVectorN< CCopasiTask > * getTaskList()
CSteadyStateTask * getSubTask() const
bool setValue(const std::string &name, const CType &value)
void load(CReadConfig &configBuffer, CReadConfig::Mode mode=CReadConfig::NEXT)
static CKeyFactory * getKeyFactory()
virtual const std::string & getKey() const
virtual void print(std::ostream *ostream) const
bool addParameter(const CCopasiParameter ¶meter)
C_INT32 getVariable(const std::string &name, const std::string &type, void *pout, CReadConfig::Mode mode=CReadConfig::NEXT)
CCopasiContainer * getObjectParent() const
#define CONSTRUCTOR_TRACE