COPASI API  4.16.103
CMiaseML.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/miase/CMiaseML.h,v $
3 // $Revision: 1.5 $
4 // $Name: $
5 // $Author: akoenig $
6 // $Date: 2008/03/23 14:45:30 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 #ifndef CMIASEML
15 #define CMIASEML
16 
17 #include "CMiaseBase.h"
18 #include "CMiaseSimulation.h"
19 #include "CMiaseTask.h"
20 #include "CMiaseModel.h"
21 #include "CMiaseOutput.h"
22 
23 class CMiaseSed : public CMiaseBase
24  {
25  public:
26 
27  CMiaseSed();
28 
29  ~CMiaseSed();
30 
31  void addSimulation (CMiaseSimulation* simulation);
32  void addTask (CMiaseTask* task);
33  void addModel (CMiaseModel* model);
34  void addOutput (CMiaseOutput* output);
35 
37  CMiaseSimulation* getSimulation (std::string id);
39  int getNumOfSimulations ();
40 
41  CMiaseTask* getTask(int num);
42  CMiaseTask* getTask(std::string id);
44  int getNumOfTasks ();
45 
46  CMiaseModel* getModel(int num);
47  CMiaseModel* getModel(std::string id);
49  int getNumOfModels ();
50 
51  CMiaseOutput* getOutput(int num);
52  CMiaseOutput* getOutput(std::string id);
54  int getNumOfOutputs ();
55 
56  private:
57 
58  std::vector< CMiaseSimulation* > mListofSimulations;
59  std::vector< CMiaseTask* > mListofTasks;
60  std::vector< CMiaseModel* > mListofModels;
61  std::vector< CMiaseOutput* > mListofOutputs;
62  };
63 
64 class CMiaseML : public CMiaseBase
65  {
66 
67  public:
68 
69  CMiaseML();
70 
71  ~CMiaseML();
72 
73  void setMiaseSed(CMiaseSed* sed);
74  CMiaseSed* getSed();
75 
76  std::string getXmlns();
77  std::string getVersion();
78 
79  void setXmlns(std::string xmlns);
80  void setVersion(std::string version);
81 
82  private:
83 
85 
86  std::string mXmlns;
87  std::string mVersion;
88  };
89 
90 #endif //CMIASEML
CMiaseModel * getLastModel()
Definition: CMiaseML.cpp:118
CMiaseTask * getTask(int num)
Definition: CMiaseML.cpp:74
void addTask(CMiaseTask *task)
Definition: CMiaseML.cpp:32
std::vector< CMiaseModel * > mListofModels
Definition: CMiaseML.h:60
CMiaseOutput * getOutput(int num)
Definition: CMiaseML.cpp:128
std::vector< CMiaseSimulation * > mListofSimulations
Definition: CMiaseML.h:58
CMiaseTask * getLastTask()
Definition: CMiaseML.cpp:91
CMiaseOutput * getLastOutput()
Definition: CMiaseML.cpp:145
int getNumOfOutputs()
Definition: CMiaseML.cpp:150
void setMiaseSed(CMiaseSed *sed)
Definition: CMiaseML.cpp:163
std::string mXmlns
Definition: CMiaseML.h:86
CMiaseSed * mSed
Definition: CMiaseML.h:84
std::vector< CMiaseOutput * > mListofOutputs
Definition: CMiaseML.h:61
CMiaseSimulation * getSimulation(int num)
Definition: CMiaseML.cpp:47
CMiaseSed * getSed()
Definition: CMiaseML.cpp:168
void setXmlns(std::string xmlns)
Definition: CMiaseML.cpp:183
CMiaseModel * getModel(int num)
Definition: CMiaseML.cpp:101
std::vector< CMiaseTask * > mListofTasks
Definition: CMiaseML.h:59
void addModel(CMiaseModel *model)
Definition: CMiaseML.cpp:37
void setVersion(std::string version)
Definition: CMiaseML.cpp:188
int getNumOfModels()
Definition: CMiaseML.cpp:123
int getNumOfSimulations()
Definition: CMiaseML.cpp:69
~CMiaseSed()
Definition: CMiaseML.cpp:20
void addOutput(CMiaseOutput *output)
Definition: CMiaseML.cpp:42
CMiaseSimulation * getLastSimulation()
Definition: CMiaseML.cpp:64
std::string mVersion
Definition: CMiaseML.h:87
std::string getVersion()
Definition: CMiaseML.cpp:178
std::string getXmlns()
Definition: CMiaseML.cpp:173
int getNumOfTasks()
Definition: CMiaseML.cpp:96
void addSimulation(CMiaseSimulation *simulation)
Definition: CMiaseML.cpp:27