COPASI API
4.16.103
|
#include <COutputAssistant.h>
Static Public Member Functions | |
static CCopasiObject * | createDefaultOutput (C_INT32 id, CCopasiTask *task, CCopasiDataModel *pDataModel, bool activate=true) |
static C_INT32 | getDefaultPlotIndex (const CCopasiProblem *problem) |
static C_INT32 | getDefaultReportIndex (const CCopasiProblem *problem) |
static const CDefaultOutputDescription & | getItem (C_INT32 id) |
static const std::string & | getItemName (C_INT32 id) |
static std::vector< C_INT32 > | getListOfDefaultOutputDescriptions (const CCopasiTask *task=NULL) |
Private Types | |
typedef std::map< C_INT32, CDefaultOutputDescription > | Map |
Static Private Member Functions | |
static CPlotSpecification * | createPlot (const std::string &name, const CCopasiObject *x, bool logX, const std::vector< const CCopasiObject * > &y, bool logY, const CCopasiTask::Type &taskType, CCopasiDataModel *pDataModel, CCopasiTask *task=NULL) |
static CReportDefinition * | createTable (const std::string &name, const std::vector< const CCopasiObject * > &d, const std::string &comment, const CCopasiTask::Type &taskType, CCopasiDataModel *pDataModel) |
static bool | initialize () |
Static Private Attributes | |
static const CDefaultOutputDescription | emptyItem |
static const std::string | emptyString |
static Map | mMap |
Definition at line 50 of file COutputAssistant.h.
|
private |
Definition at line 101 of file COutputAssistant.h.
|
static |
create a plot or report from template with index id. returns a pointer to the plot or report definition (or NULL) if activate==true and the ouput is a report the report is set as the current report for the task (possibly replacing an already set report)
Definition at line 580 of file COutputAssistant.cpp.
References CPlotItem::addChannel(), COutputInterface::AFTER, CCopasiVector< T >::begin(), C_INT32, CPlotSpecification::createItem(), createPlot(), COutputDefinitionVector::createPlotSpec(), CPlotItem::curve2d, COutputInterface::DURING, CCopasiVector< T >::end(), CCopasiObject::getCN(), CPlotColors::getCopasiColorStr(), CFitProblem::getExperiementSet(), CExperimentSet::getExperiment(), CExperimentSet::getExperimentCount(), CExperiment::getExperimentType(), CExperiment::getFittingPoints(), getItem(), getItemName(), CPlotSpecification::getItems(), CCopasiProblem::getModel(), CCopasiContainer::getObject(), CCopasiParameterGroup::getObject(), CCopasiObject::getObjectDisplayName(), CCopasiObject::getObjectName(), CCopasiDataModel::getPlotDefinitionList(), CCopasiTask::getProblem(), CCopasiDataModel::getTaskList(), CDefaultOutputDescription::mTaskType, CPlotItem::plot2d, pTask, CPlotItem::setActivity(), CPlotSpecification::setLogY(), CCopasiParameterGroup::setValue(), CCopasiVector< T >::size(), and CCopasiTask::timeCourse.
Referenced by Arguments::prepareModel(), and DefaultPlotDialog::slotCreate().
|
staticprivate |
Definition at line 1263 of file COutputAssistant.cpp.
References CPlotItem::addChannel(), C_INT32, CPlotSpecification::createItem(), COutputDefinitionVector::createPlotSpec(), CCopasiTask::crosssection, CPlotItem::curve2d, CCopasiObject::getCN(), CCopasiObject::getObjectDisplayName(), CCopasiDataModel::getPlotDefinitionList(), CCopasiTask::getProblem(), CScanProblem::getSubtask(), CCopasiTask::getType(), CPlotItem::plot2d, CPlotSpecification::setLogX(), CPlotSpecification::setLogY(), and CCopasiParameterGroup::setValue().
Referenced by createDefaultOutput().
|
staticprivate |
Definition at line 1330 of file COutputAssistant.cpp.
References C_INT32, CReportDefinitionVector::createReportDefinition(), CCopasiDataModel::getReportDefinitionList(), CReportDefinition::getTableAddr(), CReportDefinition::setIsTable(), CReportDefinition::setSeparator(), and CReportDefinition::setTaskType().
|
static |
get an index of a default plot that is recommended for the given problem. If no such plot exists, -1 is returned
Definition at line 114 of file COutputAssistant.cpp.
References CCopasiProblem::getType(), CCopasiTask::steadyState, and CCopasiTask::timeCourse.
|
static |
get an index of a default output report that is recommended for the given problem. If no such report exists, -1 is returned
Definition at line 79 of file COutputAssistant.cpp.
References CCopasiProblem::getType(), CCopasiTask::steadyState, and CCopasiTask::timeCourse.
|
static |
get complete description of output definition with index id.
Definition at line 143 of file COutputAssistant.cpp.
References emptyItem, and mMap.
Referenced by createDefaultOutput(), and DefaultPlotDialog::slotSelect().
|
static |
get title of output definition with index id.
Definition at line 132 of file COutputAssistant.cpp.
References emptyString, and mMap.
Referenced by createDefaultOutput(), DefaultPlotDialog::fillList(), and DefaultPlotDialog::slotSelect().
|
static |
get a list of indices of output definitions that are suitable for the problem. If problem=NULL (default) all indices in the map are returned.
Definition at line 45 of file COutputAssistant.cpp.
References CCopasiTask::crosssection, CCopasiTask::getType(), initialize(), mMap, CCopasiTask::timeCourse, and CCopasiTask::unset.
Referenced by DefaultPlotDialog::fillList(), and Arguments::prepareModel().
|
staticprivate |
numbering scheme:
0-99: time course plots 200-299: plots with scan parameter on x-axis
above 1000: reports
1000-1099: reports with time and some other variables 1200-1299: reports with scan parameters and some other variables
the meaning of the last two digits should be the same in all those cases.
Special plots, e.g. for parameter estimation, use numbers 900-998.
Definition at line 170 of file COutputAssistant.cpp.
References mMap, CCopasiTask::optimization, CCopasiTask::parameterFitting, CCopasiTask::scan, CCopasiTask::steadyState, CCopasiTask::timeCourse, and CCopasiTask::unset.
Referenced by getListOfDefaultOutputDescriptions().
|
staticprivate |
Definition at line 128 of file COutputAssistant.h.
Referenced by getItem().
|
staticprivate |
Definition at line 127 of file COutputAssistant.h.
Referenced by getItemName().
|
staticprivate |
Definition at line 104 of file COutputAssistant.h.
Referenced by getItem(), getItemName(), getListOfDefaultOutputDescriptions(), and initialize().