COPASI API
4.40.278
|
#include <COutputAssistant.h>
Static Public Member Functions | |
static CDataObject * | createDefaultOutput (C_INT32 id, CCopasiTask *task, CDataModel *pDataModel, bool activate=true, const std::vector< COutputOption > *pOptions=NULL) |
static C_INT32 | findItemByName (const std::string &name, bool isPlot=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 void | add2DDataArrayToVector (std::vector< const CDataObject * > &pVector, const CDataArray *pArray) |
static CPlotSpecification * | createPlot (const std::string &name, const CDataObject *x, bool logX, const std::vector< const CDataObject * > &y, bool logY, const CTaskEnum::Task &taskType, CDataModel *pDataModel, CCopasiTask *task=NULL) |
static CReportDefinition * | createTable (const std::string &name, const std::vector< const CDataObject * > &d, const std::string &comment, const CTaskEnum::Task &taskType, CDataModel *pDataModel) |
static bool | initialize () |
static bool | isOptionEnabled (const std::vector< COutputOption > *pOptions, const std::string &name, bool defaultValue=true) |
Static Private Attributes | |
static const CDefaultOutputDescription | emptyItem |
static const std::string | emptyString |
static Map | mMap |
|
private |
|
staticprivate |
References CDataArray::addElementReference(), C_INT32, CDataArray::dimensionality(), and CDataArray::size().
|
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)
References CPlotItem::addChannel(), CPlotSpecification::addTaskType(), COutputInterface::AFTER, CCopasiParameterGroup::assertParameter(), CDataVector< CType >::begin(), C_INT32, CPlotSpecification::createItem(), createPlot(), COutputDefinitionVector::createPlotSpec(), CPlotItem::curve2d, COutputInterface::DURING, CDataVector< CType >::end(), CObjectInterface::getCN(), CDataObject::getCN(), CPlotColors::getCopasiColorStr(), CExperimentSet::getExperiment(), CExperimentSet::getExperimentCount(), CFitProblem::getExperimentSet(), CExperiment::getExperimentType(), CExperiment::getFittingPoints(), getItem(), getItemName(), CPlotSpecification::getItems(), CCopasiTask::getMathContainer(), CMathContainer::getModel(), CCopasiParameterGroup::getObject(), CDataContainer::getObject(), CDataVector< CType >::getObject(), CDataObject::getObjectDisplayName(), CDataObject::getObjectName(), CDataModel::getPlotDefinitionList(), CCopasiTask::getProblem(), CDataModel::getTaskList(), isOptionEnabled(), CTaskEnum::parameterFitting, CPlotItem::plot2d, CPlotItem::setActivity(), CPlotSpecification::setLogY(), CCopasiParameterGroup::setValue(), CDataVector< CType >::size(), CPlotItem::Square, CCopasiParameter::STRING, and CTaskEnum::timeCourse.
|
staticprivate |
References CPlotItem::addChannel(), CPlotSpecification::addTaskType(), CCopasiParameterGroup::assertParameter(), C_INT32, CPlotSpecification::createItem(), COutputDefinitionVector::createPlotSpec(), CTaskEnum::crosssection, CPlotItem::curve2d, CDataObject::getCN(), CDataObject::getObjectDisplayName(), CDataModel::getPlotDefinitionList(), CCopasiTask::getProblem(), CScanProblem::getSubtask(), CCopasiTask::getType(), CTaskEnum::optimization, CTaskEnum::parameterFitting, CPlotItem::plot2d, CTaskEnum::scan, CPlotSpecification::setLogX(), CPlotSpecification::setLogY(), CCopasiParameterGroup::setValue(), CCopasiParameter::STRING, and CTaskEnum::timeSens.
Referenced by createDefaultOutput().
|
staticprivate |
|
static |
get the id of output definition with the given name
name | the name of the default output description to find |
isPlot | boolean indicating whether we are looking for a plot (true, default) or report. |
References initialize(), and mMap.
|
static |
get an index of a default plot that is recommended for the given problem. If no such plot exists, -1 is returned
References CCopasiProblem::getType(), CTaskEnum::steadyState, and CTaskEnum::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
References CCopasiProblem::getType(), CTaskEnum::steadyState, and CTaskEnum::timeCourse.
|
static |
get complete description of output definition with index id.
References emptyItem, and mMap.
Referenced by createDefaultOutput().
|
static |
get title of output definition with index id.
References emptyString, and mMap.
Referenced by createDefaultOutput().
|
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.
References CTaskEnum::crosssection, CCopasiTask::getType(), initialize(), mMap, CTaskEnum::timeCourse, and CTaskEnum::UnsetTask.
|
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.
References mMap, CTaskEnum::optimization, CTaskEnum::parameterFitting, CTaskEnum::scan, CTaskEnum::steadyState, CTaskEnum::timeCourse, CTaskEnum::timeSens, and CTaskEnum::UnsetTask.
Referenced by findItemByName(), and getListOfDefaultOutputDescriptions().
|
staticprivate |
Referenced by createDefaultOutput().
|
staticprivate |
Referenced by getItem().
|
staticprivate |
Referenced by getItemName().
|
staticprivate |
Referenced by findItemByName(), getItem(), getItemName(), getListOfDefaultOutputDescriptions(), and initialize().