COPASI API
4.40.278
|
#include <CProcessReport.h>
Public Member Functions | |
size_t | addItem (const std::string &name, const C_FLOAT64 &value, const C_FLOAT64 *pEndValue=NULL) |
size_t | addItem (const std::string &name, const C_INT32 &value, const C_INT32 *pEndValue=NULL) |
size_t | addItem (const std::string &name, const std::string &value, const std::string *pEndValue=NULL) |
size_t | addItem (const std::string &name, const unsigned C_INT32 &value, const unsigned C_INT32 *pEndValue=NULL) |
CProcessReportLevel (CProcessReport *pInterface=NULL) | |
bool | finish () |
bool | finishItem (const size_t &handle) |
operator bool () const | |
CProcessReportLevel | operator++ () |
bool | proceed () |
bool | progress () |
bool | progressItem (const size_t &handle) |
bool | resetItem (const size_t &handle) |
void | setIgnoreStop (const bool &ignoreStop=true) |
bool | setName (const std::string &name) |
CProcessReport * | toProcessReportPtr () |
~CProcessReportLevel () | |
Private Attributes | |
size_t | mLevel |
size_t | mMaxDisplayLevel |
CProcessReport * | mpInterface |
CProcessReportLevel::CProcessReportLevel | ( | CProcessReport * | pInterface = NULL | ) |
Specific Constructor
CProcessReport | * pInterface |
CProcessReportLevel::~CProcessReportLevel | ( | ) |
Destructor
size_t CProcessReportLevel::addItem | ( | const std::string & | name, |
const C_FLOAT64 & | value, | ||
const C_FLOAT64 * | pEndValue = NULL |
||
) |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
const | std::string & name |
const | C_FLOAT64 & value |
const | C_FLOAT64 * pEndValue = NULL |
References CProcessReport::addItem(), C_INVALID_INDEX, CCopasiParameter::DOUBLE, mLevel, mMaxDisplayLevel, and mpInterface.
size_t CProcessReportLevel::addItem | ( | const std::string & | name, |
const C_INT32 & | value, | ||
const C_INT32 * | pEndValue = NULL |
||
) |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
const | std::string & name |
const | C_INT32 & value |
const | C_INT32 * pEndValue = NULL |
References CProcessReport::addItem(), C_INVALID_INDEX, CCopasiParameter::INT, mLevel, mMaxDisplayLevel, and mpInterface.
size_t CProcessReportLevel::addItem | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string * | pEndValue = NULL |
||
) |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
const | std::string & name |
const | std::string & value |
const | std::string * pEndValue = NULL |
References CProcessReport::addItem(), C_INVALID_INDEX, mLevel, mMaxDisplayLevel, mpInterface, and CCopasiParameter::STRING.
Referenced by CBitPatternMethod::calculate(), CBitPatternTreeMethod::calculate(), CEFMAlgorithm::calculateNextTableau(), CNewtonMethod::doIntegration(), CBitPatternMethod::initialize(), CBitPatternTreeMethod::initialize(), CEFMAlgorithm::initialize(), CSSAMethod::initialize(), COptMethodCoranaWalk::initialize(), COptMethodHookeJeeves::initialize(), COptMethodLevenbergMarquardt::initialize(), COptMethodNelderMead::initialize(), COptMethodPS::initialize(), COptMethodSA::initialize(), COptMethodSS::initialize(), COptPopulationMethod::initialize(), CSensMethod::process(), CLyapTask::process(), CScanTask::process(), CTimeSensTask::process(), CTSSATask::process(), CAnalyticsTask::process(), CCrossSectionTask::process(), CNewtonMethod::processNewton(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), and COptProblem::setCallBack().
size_t CProcessReportLevel::addItem | ( | const std::string & | name, |
const unsigned C_INT32 & | value, | ||
const unsigned C_INT32 * | pEndValue = NULL |
||
) |
Add a process report item to to the list of reporting items. The return value is the handle of the item and can be used to indicate process, finish, or reset the item. If the method fails C_INVALID_INDEX is returned.
const | std::string & name |
const | unsigned C_INT32 & value |
const | unsigned C_INT32 * pEndValue = NULL |
References CProcessReport::addItem(), C_INVALID_INDEX, mLevel, mMaxDisplayLevel, mpInterface, and CCopasiParameter::UINT.
bool CProcessReportLevel::finish | ( | ) |
Indicate that all items are finished reporting. All item handles loose their validity. If the return value is false the calling process must halt execution and return.
bool | continue |
References CProcessReport::finish(), mpInterface, and proceed().
bool CProcessReportLevel::finishItem | ( | const size_t & | handle | ) |
Indicate that item handle is finished reporting. The handle of that item is no longer valid after the call. If the return value is false the calling process must halt execution and return.
const | size_t & handle |
bool | continue |
References CProcessReport::finishItem(), mLevel, mMaxDisplayLevel, mpInterface, and proceed().
Referenced by CBitPatternMethod::calculate(), CBitPatternTreeMethod::calculate(), CEFMAlgorithm::calculate(), CSSAMethod::calculate(), CEFMAlgorithm::calculateFluxModes(), CEFMAlgorithm::calculateNextTableau(), CNewtonMethod::doIntegration(), CAnalyticsTask::finish(), CCrossSectionTask::finish(), COptMethodDE::initialize(), COptMethodGA::initialize(), COptMethodSS::initialize(), COptMethodCoranaWalk::optimise(), COptMethodDE::optimise(), COptMethodEP::optimise(), COptMethodGA::optimise(), COptMethodGASR::optimise(), COptMethodHookeJeeves::optimise(), COptMethodLevenbergMarquardt::optimise(), COptMethodNelderMead::optimise(), COptMethodPS::optimise(), COptMethodSA::optimise(), COptMethodSRES::optimise(), COptMethodSS::optimise(), CSensMethod::process(), CLyapTask::process(), CTimeSensTask::process(), CTSSATask::process(), CNewtonMethod::processNewton(), CTrajectoryTask::processTrajectory(), and CTrajectoryTask::processValues().
CProcessReportLevel::operator bool | ( | ) | const |
Check whether we actually have an active interface
CProcessReportLevel CProcessReportLevel::operator++ | ( | ) |
bool CProcessReportLevel::proceed | ( | ) |
Check whether processing shall proceed. If the return value is false the calling process must halt execution and return. This method is provided so that lengthy processing without advances in any of the reporting items can check whether continuation is requested.
bool | continue |
References mpInterface, and CProcessReport::proceed().
Referenced by CLyapWolfMethod::calculate(), CEFMAlgorithm::calculateNextTableau(), CBitPatternTreeMethod::combine(), CBitPatternMethod::combine(), finish(), finishItem(), CTimeSensTask::processStep(), CTrajectoryTask::processStep(), progress(), progressItem(), and resetItem().
bool CProcessReportLevel::progress | ( | ) |
Report process on all items. If the return value is false the calling process must halt execution and return.
bool | continue |
References mpInterface, proceed(), and CProcessReport::progress().
bool CProcessReportLevel::progressItem | ( | const size_t & | handle | ) |
Report process on item handle. If the return value is false the calling process must halt execution and return.
const | size_t & handle |
bool | continue |
References mLevel, mMaxDisplayLevel, mpInterface, proceed(), and CProcessReport::progressItem().
Referenced by CBitPatternMethod::calculate(), CBitPatternTreeMethod::calculate(), COptProblem::calculate(), CFitProblem::calculate(), CFitProblem::calculateCrossValidation(), CEFMAlgorithm::calculateFluxModes(), CEFMAlgorithm::calculateNextTableau(), CBitPatternTreeMethod::combine(), CBitPatternMethod::combine(), CSensMethod::do_target_calculation(), CNewtonMethod::doIntegration(), CAnalyticsTask::eventCallBack(), CCrossSectionTask::eventCallBack(), COptProblem::incrementCounters(), CLyapTask::methodCallback(), COptMethodCoranaWalk::optimise(), COptMethodDE::optimise(), COptMethodEP::optimise(), COptMethodGA::optimise(), COptMethodGASR::optimise(), COptMethodHookeJeeves::optimise(), COptMethodLevenbergMarquardt::optimise(), COptMethodNelderMead::optimise(), COptMethodPS::optimise(), COptMethodSA::optimise(), COptMethodSRES::optimise(), COptMethodSS::optimise(), CTimeSensTask::process(), CTSSATask::process(), CScanTask::processCallback(), CNewtonMethod::processNewton(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), and COptProblem::setSolution().
bool CProcessReportLevel::resetItem | ( | const size_t & | handle | ) |
Reset item handle. This means that the value of the item has changed but not as part of a continuous process. If you run multiple processes call reset between them. If the return value is false the calling process must halt execution and return.
const | size_t & handle |
bool | continue |
References mLevel, mMaxDisplayLevel, mpInterface, proceed(), and CProcessReport::resetItem().
void CProcessReportLevel::setIgnoreStop | ( | const bool & | ignoreStop = true | ) |
Set whether to ignore stop when determining to proceed.
const | bool & ignoreStop (default: true) |
References mpInterface, and CProcessReport::setIgnoreStop().
Referenced by COptTask::process(), and CFitTask::process().
bool CProcessReportLevel::setName | ( | const std::string & | name | ) |
Set the name of the process.
const | std::string & name |
References mpInterface, and CProcessReport::setName().
Referenced by CSensMethod::process(), CLyapTask::process(), CScanTask::process(), CTimeSensTask::process(), CTSSATask::process(), CAnalyticsTask::process(), CCrossSectionTask::process(), CNewtonMethod::processInternal(), CTrajectoryTask::processTrajectory(), and CTrajectoryTask::processValues().
CProcessReport * CProcessReportLevel::toProcessReportPtr | ( | ) |
Retrieve a pointer to the process report if valid (level < maxDisplayLevel)
References mLevel, mMaxDisplayLevel, and mpInterface.
Referenced by CMoietiesMethod::process().
|
private |
Referenced by addItem(), finishItem(), operator++(), progressItem(), resetItem(), and toProcessReportPtr().
|
private |
Referenced by addItem(), finishItem(), progressItem(), resetItem(), and toProcessReportPtr().
|
private |
Referenced by addItem(), finish(), finishItem(), proceed(), progress(), progressItem(), resetItem(), setIgnoreStop(), setName(), and toProcessReportPtr().