COPASI API
4.16.103
|
#include <arguments.h>
Public Member Functions | |
Arguments (int argc, char *argv[]) | |
const std::string & | getFilename () const |
const std::string & | getFileType () const |
char ** | getInitArgs () const |
const std::string & | getOutputDir () const |
int | getOutputToGenerate () const |
const std::string & | getReportFile () const |
const std::string & | getTaskName () const |
int | getTaskToSwitchTo () const |
bool | handleCommandLine () const |
bool | haveFile () const |
bool | haveOutputDir () const |
bool | haveReportFile () const |
bool | haveTaskName () const |
bool | isDisablePlots () const |
bool | isDisableRandomizeStartValues () const |
bool | isDisableStatistic () const |
bool | isGenerateOutput () const |
bool | isHideWindow () const |
bool | isQuitAfterTaskExecution () const |
bool | isRunScheduled () const |
bool | isSaveLayout () const |
bool | isSolutionStatistic () const |
bool | isSwitchToTask () const |
bool | isValid () const |
std::string | prepareModel () const |
Static Public Member Functions | |
static CCopasiTask * | getFirstScheduledTask () |
Private Member Functions | |
CCopasiTask * | getTask () const |
CCopasiTask * | getTaskForName (const std::string &name) const |
void | parseArgs (int arc, char *argv[]) |
Private Attributes | |
int | mArgc |
char ** | mArgv |
bool | mClearTargets |
bool | mDisablePlots |
bool | mDisableRandomizeStartValues |
bool | mDisableStatistic |
std::string | mFilename |
std::string | mFileType |
int | mGenerateOutput |
bool | mHideWindow |
std::string | mOutputDir |
bool | mQuitAfterTaskExecution |
std::string | mReportFile |
bool | mRunScheduled |
bool | mSaveLayout |
bool | mSetSolutionStatistic |
int | mSwitchToTask |
std::string | mTask |
Definition at line 13 of file arguments.h.
Arguments::Arguments | ( | int | argc, |
char * | argv[] | ||
) |
const std::string & Arguments::getFilename | ( | ) | const |
Definition at line 255 of file arguments.cpp.
References mFilename.
Referenced by prepareModel(), and Worker::Worker().
const std::string & Arguments::getFileType | ( | ) | const |
Definition at line 260 of file arguments.cpp.
References mFileType.
Referenced by Worker::slotNotify().
|
static |
Definition at line 53 of file arguments.cpp.
References CCopasiRootContainer::getDatamodelList(), CCopasiTask::isScheduled(), and CCopasiVector< T >::size().
Referenced by Worker::finishedLoading(), and getTask().
char ** Arguments::getInitArgs | ( | ) | const |
const std::string & Arguments::getOutputDir | ( | ) | const |
Definition at line 106 of file arguments.cpp.
References mOutputDir.
Referenced by Worker::slotNotify().
int Arguments::getOutputToGenerate | ( | ) | const |
const std::string & Arguments::getReportFile | ( | ) | const |
|
private |
Definition at line 83 of file arguments.cpp.
References getFirstScheduledTask(), getTaskForName(), haveTaskName(), and mTask.
Referenced by prepareModel().
|
private |
Definition at line 68 of file arguments.cpp.
References CCopasiRootContainer::getDatamodelList(), CCopasiObject::getObjectName(), and CCopasiVector< T >::size().
Referenced by getTask().
const std::string & Arguments::getTaskName | ( | ) | const |
Definition at line 280 of file arguments.cpp.
References mTask.
int Arguments::getTaskToSwitchTo | ( | ) | const |
Definition at line 242 of file arguments.cpp.
References mSwitchToTask.
Referenced by Worker::finishedLoading().
bool Arguments::handleCommandLine | ( | ) | const |
Definition at line 116 of file arguments.cpp.
References CCopasiRootContainer::addDatamodel(), CCopasiMessage::getAllMessageText(), CCopasiDataModel::getListOfLayouts(), CCopasiException::getMessage(), CCopasiObject::getObjectName(), haveFile(), haveOutputDir(), CCopasiDataModel::importSBML(), CCopasiRootContainer::init(), CCopasiDataModel::loadModel(), mFilename, mFileType, mOutputDir, mSaveLayout, CQLayoutScene::recreate(), CQLayoutScene::saveToFile(), and CCopasiVector< T >::size().
Referenced by main().
bool Arguments::haveFile | ( | ) | const |
Definition at line 265 of file arguments.cpp.
References mFilename.
Referenced by handleCommandLine(), and isValid().
bool Arguments::haveOutputDir | ( | ) | const |
Definition at line 101 of file arguments.cpp.
References mOutputDir.
Referenced by handleCommandLine(), and Worker::slotNotify().
bool Arguments::haveReportFile | ( | ) | const |
bool Arguments::haveTaskName | ( | ) | const |
bool Arguments::isDisablePlots | ( | ) | const |
bool Arguments::isDisableRandomizeStartValues | ( | ) | const |
Definition at line 295 of file arguments.cpp.
References mDisableRandomizeStartValues.
Referenced by prepareModel().
bool Arguments::isDisableStatistic | ( | ) | const |
Definition at line 290 of file arguments.cpp.
References mDisableStatistic.
Referenced by prepareModel().
bool Arguments::isGenerateOutput | ( | ) | const |
Definition at line 91 of file arguments.cpp.
References mGenerateOutput.
Referenced by prepareModel().
bool Arguments::isHideWindow | ( | ) | const |
Definition at line 305 of file arguments.cpp.
References mHideWindow.
Referenced by Worker::finishedLoading().
bool Arguments::isQuitAfterTaskExecution | ( | ) | const |
Definition at line 310 of file arguments.cpp.
References mQuitAfterTaskExecution.
Referenced by Worker::slotNotify().
bool Arguments::isRunScheduled | ( | ) | const |
Definition at line 270 of file arguments.cpp.
References mRunScheduled.
Referenced by Worker::finishedLoading().
bool Arguments::isSaveLayout | ( | ) | const |
bool Arguments::isSolutionStatistic | ( | ) | const |
bool Arguments::isSwitchToTask | ( | ) | const |
Definition at line 237 of file arguments.cpp.
References mSwitchToTask.
Referenced by Worker::finishedLoading().
bool Arguments::isValid | ( | ) | const |
Definition at line 315 of file arguments.cpp.
References haveFile(), and mFilename.
Referenced by main(), and prepareModel().
|
private |
Definition at line 156 of file arguments.cpp.
References mClearTargets, mDisablePlots, mDisableRandomizeStartValues, mDisableStatistic, mFilename, mFileType, mGenerateOutput, mHideWindow, mOutputDir, mQuitAfterTaskExecution, mReportFile, mRunScheduled, mSaveLayout, mSetSolutionStatistic, mSwitchToTask, and mTask.
Referenced by Arguments().
std::string Arguments::prepareModel | ( | ) | const |
Definition at line 324 of file arguments.cpp.
References COutputAssistant::createDefaultOutput(), CCopasiRootContainer::getDatamodelList(), getFilename(), COutputAssistant::getListOfDefaultOutputDescriptions(), CCopasiDataModel::getPlotDefinitionList(), CCopasiTask::getProblem(), CCopasiTask::getReport(), getTask(), CCopasiDataModel::getTaskList(), haveReportFile(), isDisableRandomizeStartValues(), isDisableStatistic(), isGenerateOutput(), isValid(), CCopasiDataModel::loadModel(), mClearTargets, mDisablePlots, mGenerateOutput, mReportFile, mSetSolutionStatistic, CCopasiDataModel::saveModel(), COptProblem::setCalculateStatistics(), COptTask::setMethodType(), COptProblem::setRandomizeStartValues(), CReport::setTarget(), CCopasiVector< T >::size(), and CCopasiMethod::Statistics.
Referenced by main().
|
private |
Definition at line 112 of file arguments.h.
|
private |
Definition at line 114 of file arguments.h.
Referenced by getInitArgs().
|
private |
Definition at line 106 of file arguments.h.
Referenced by parseArgs(), and prepareModel().
|
private |
Definition at line 98 of file arguments.h.
Referenced by isDisablePlots(), parseArgs(), and prepareModel().
|
private |
Definition at line 100 of file arguments.h.
Referenced by isDisableRandomizeStartValues(), and parseArgs().
|
private |
Definition at line 96 of file arguments.h.
Referenced by isDisableStatistic(), and parseArgs().
|
private |
Definition at line 80 of file arguments.h.
Referenced by getFilename(), getInitArgs(), handleCommandLine(), haveFile(), isValid(), and parseArgs().
|
private |
Definition at line 88 of file arguments.h.
Referenced by getFileType(), handleCommandLine(), and parseArgs().
|
private |
Definition at line 110 of file arguments.h.
Referenced by getOutputToGenerate(), isGenerateOutput(), parseArgs(), and prepareModel().
|
private |
Definition at line 102 of file arguments.h.
Referenced by isHideWindow(), and parseArgs().
|
private |
Definition at line 82 of file arguments.h.
Referenced by getOutputDir(), handleCommandLine(), haveOutputDir(), and parseArgs().
|
private |
Definition at line 104 of file arguments.h.
Referenced by isQuitAfterTaskExecution(), and parseArgs().
|
private |
Definition at line 86 of file arguments.h.
Referenced by getReportFile(), haveReportFile(), parseArgs(), and prepareModel().
|
private |
Definition at line 90 of file arguments.h.
Referenced by isRunScheduled(), and parseArgs().
|
private |
Definition at line 92 of file arguments.h.
Referenced by handleCommandLine(), isSaveLayout(), and parseArgs().
|
private |
Definition at line 94 of file arguments.h.
Referenced by isSolutionStatistic(), parseArgs(), and prepareModel().
|
private |
Definition at line 108 of file arguments.h.
Referenced by getTaskToSwitchTo(), isSwitchToTask(), and parseArgs().
|
private |
Definition at line 84 of file arguments.h.
Referenced by getTask(), getTaskName(), haveTaskName(), and parseArgs().