COPASI API  4.16.103
CMoietiesMethod.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/moieties/CMoietiesMethod.cpp,v $
3 // $Revision: 1.4 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:31:27 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 #include "copasi.h"
20 
21 #include "CMoietiesMethod.h"
22 #include "CMoietiesProblem.h"
23 
24 #include "model/CModel.h"
25 
27 {
28  CMoietiesMethod * pMethod = NULL;
29 
30  switch (subType)
31  {
32  case Householder:
33  default:
34  pMethod = new CMoietiesMethod();
35  break;
36  }
37 
38  return pMethod;
39 }
40 
42  CCopasiMethod(CCopasiTask::moieties, CCopasiMethod::Householder),
43  mpProblem(NULL)
44 {}
45 
47  const CMoietiesMethod::SubType & subType,
48  const CCopasiContainer * pParent):
49  CCopasiMethod(taskType, subType, pParent),
50  mpProblem(NULL)
51 {}
52 
54  const CCopasiContainer * pParent):
55  CCopasiMethod(src, pParent),
56  mpProblem(src.mpProblem)
57 {}
58 
59 // virtual
61 {}
62 
63 // virtual
65 {
66  try
67  {
69  }
70 
71  catch (...)
72  {}
73 
74  return true;
75 }
76 
78 {
79  mpProblem = pProblem;
80 }
virtual bool process()
void setProblem(CMoietiesProblem *pProblem)
CMoietiesProblem * mpProblem
static CMoietiesMethod * createMethod(const CCopasiMethod::SubType &subType=CCopasiMethod::Householder)
CProcessReport * mpCallBack
CModel * getModel() const
virtual ~CMoietiesMethod()
bool forceCompile(CProcessReport *pProcessReport)
Definition: CModel.cpp:636