copasi/sedml/CSEDMLExporter.cpp
/**
 * Creates the simulations for SEDML.
 */
Creates the simulations for SEDML.
Creates the simulations for SEDML .
std::string CSEDMLExporter::createSteadyStateTask(CDataModel& dataModel, const std::string & modelId)
{
  SedSteadyState *steady  = this->mpSEDMLDocument->createSteadyState();
  steady->setId(SEDMLUtils::getNextId("steady", mpSEDMLDocument->getNumSimulations()));
  CCopasiTask* pTask = &dataModel.getTaskList()->operator[]("Steady-State");
  CTrajectoryProblem* tProblem = static_cast<CTrajectoryProblem*>(pTask->getProblem());
  SedAlgorithm* alg = steady->createAlgorithm();
  alg->setKisaoID("KISAO:0000282");
  SedTask *task = this->mpSEDMLDocument->createTask();
  std::string taskId = SEDMLUtils::getNextId("task", mpSEDMLDocument->getNumTasks());
  task->setId(taskId);
  task->setSimulationReference(steady->getId());
  task->setModelReference(modelId);
  return taskId;
}
std :: string CSEDMLExporter :: createSteadyStateTask ( CDataModel & dataModel , const std :: string & modelId ) { SedSteadyState * steady = this -> mpSEDMLDocument -> createSteadyState ( ) ; steady -> setId ( SEDMLUtils :: getNextId ( " " , mpSEDMLDocument -> getNumSimulations ( ) ) ) ; CCopasiTask * pTask = & dataModel . getTaskList ( ) -> operator [ ] ( " " ) ; CTrajectoryProblem * tProblem = static_cast < CTrajectoryProblem * > ( pTask -> getProblem ( ) ) ; SedAlgorithm * alg = steady -> createAlgorithm ( ) ; alg -> setKisaoID ( " " ) ; SedTask * task = this -> mpSEDMLDocument -> createTask ( ) ; std :: string taskId = SEDMLUtils :: getNextId ( " " , mpSEDMLDocument -> getNumTasks ( ) ) ; task -> setId ( taskId ) ; task -> setSimulationReference ( steady -> getId ( ) ) ; task -> setModelReference ( modelId ) ; return taskId ; }
Creates the simulations for SEDML.
Creates the simulations for SEDML .
//presently SEDML only supports time course // set the correct KISAO Term