COPASI API  4.16.103
COscillationProblem.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/oscillation/COscillationProblem.cpp,v $
3 // $Revision: 1.1 $
4 // $Name: $
5 // $Author: ssahle $
6 // $Date: 2008/11/11 16:47:54 $
7 // End CVS Header
8 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
9 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
10 // and The University of Manchester.
11 // All rights reserved.
12 
13 #include "copasi.h"
14 
15 #include "COscillationProblem.h"
16 
17 //#include "CopasiDataModel/CCopasiDataModel.h"
18 
19 #include "model/CModel.h"
20 
22 #include "report/CKeyFactory.h"
23 
26 
27 // Default constructor
29  const CCopasiContainer * pParent):
30  CCopasiProblem(type, pParent)
31 {
33  initObjects();
34 }
35 
36 // copy constructor
38  const CCopasiContainer * pParent):
39  CCopasiProblem(src, pParent)
40 {
42  initObjects();
43 }
44 
45 // Destructor
47 {}
48 
50 {
51  // mpParmMaximize =
52  // assertParameter("Maximize", CCopasiParameter::BOOL, false)-> getValue().pBOOL;
53 
54  // mpGrpItems = assertGroup("OptimizationItemList");
55 
57 }
58 
60 {
61  return true;
62 }
63 
65 {
66  mpModel = pModel;
67  return true;
68 }
69 
71 {
72  CCopasiProblem::setCallBack(pCallBack);
73 
74  if (pCallBack)
75  {}
76 
77  return true;
78 }
79 
81 {
82  // addObjectReference("Function Evaluations", mCounter, CCopasiObject::ValueInt);
83 }
84 
86 {
87 
88  if (!mpModel) return false;
90 
91  bool success = true;
92 
93  return success;
94 }
95 
96 void COscillationProblem::print(std::ostream * ostream) const
97 {*ostream << *this;}
98 
99 void COscillationProblem::printResult(std::ostream * ostream) const
100  {
101  std::ostream & os = *ostream;
102 
103  //TODO
104  }
105 
106 std::ostream &operator<<(std::ostream &os, const COscillationProblem & o)
107 {
108  os << "Problem Description:" << std::endl;
109  os << "not implemented yet" << std::endl;
110  //TODO
111 
112  return os;
113 }
COscillationProblem(const CCopasiTask::Type &type=CCopasiTask::oscillation, const CCopasiContainer *pParent=NULL)
virtual bool elevateChildren()
virtual bool setModel(CModel *pModel)
virtual bool setCallBack(CProcessReport *pCallBack)
bool compileIfNecessary(CProcessReport *pProcessReport)
Definition: CModel.cpp:612
std::ostream & operator<<(std::ostream &os, const COscillationProblem &o)
Definition: CModel.h:50
virtual bool setCallBack(CProcessReport *pCallBack)
CModel * mpModel
CProcessReport * mpCallBack
virtual void printResult(std::ostream *ostream) const
virtual void print(std::ostream *ostream) const