COPASI API  4.16.103
CAbstractLayoutInterface.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef CABSTRACTLAYOUTINTERFACE_H
7 #define CABSTRACTLAYOUTINTERFACE_H
8 
9 #include <vector>
10 
11 /**
12  * This abstract class describes how an optimization algorithm
13  * will see a layout.
14  */
16 {
17 public:
20 
22  {
23  public:
24  bool isAngle;
25  //double initialValue;
26  double lowerBoundary;
27  double upperBoundary;
28  };
29 
30  virtual bool setState(const std::vector<double> & vars) = 0;
31  //virtual bool getState(std::vector<double> & vars) = 0;
32  virtual double getPotential() = 0;
33 
34  unsigned int getNumVariables() const;
35  const std::vector<VariableDescription> & getVariablesDescription() const;
36 
37  virtual const std::vector<double> & getInitialValues() const = 0;
38 
39  virtual const std::vector<double> & getMassVector() const;
40 
41 protected:
42  std::vector<VariableDescription> mVarDescription;
43  std::vector<double> mMassVector;
44 };
45 
46 #endif // CABSTRACTLAYOUTINTERFACE_H
virtual const std::vector< double > & getMassVector() const
virtual const std::vector< double > & getInitialValues() const =0
std::vector< double > mMassVector
virtual double getPotential()=0
unsigned int getNumVariables() const
virtual bool setState(const std::vector< double > &vars)=0
const std::vector< VariableDescription > & getVariablesDescription() const
std::vector< VariableDescription > mVarDescription