COPASI API  4.16.103
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CFittingPoint Class Reference

#include <CExperiment.h>

Inheritance diagram for CFittingPoint:
Inheritance graph
[legend]
Collaboration diagram for CFittingPoint:
Collaboration graph
[legend]

Public Member Functions

 CFittingPoint (const std::string &name="unknown", const CCopasiContainer *pParent=NULL)
 
 CFittingPoint (const CFittingPoint &src, const CCopasiContainer *pParent=NULL)
 
const std::string & getModelObjectCN () const
 
virtual std::string getObjectDisplayName (bool regular=true, bool richtext=false) const
 
void setValues (const C_FLOAT64 &independent, const C_FLOAT64 &measured, const C_FLOAT64 &fitted, const C_FLOAT64 &weightedError)
 
 ~CFittingPoint ()
 
- Public Member Functions inherited from CCopasiContainer
virtual bool add (CCopasiObject *pObject, const bool &adopt=true)
 
 CCopasiContainer (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=CCopasiObject::Container)
 
 CCopasiContainer (const CCopasiContainer &src, const CCopasiContainer *pParent=NULL)
 
virtual std::string getChildObjectUnits (const CCopasiObject *pObject) const
 
virtual const CObjectInterfacegetObject (const CCopasiObjectName &cn) const
 
virtual const objectMapgetObjects () const
 
virtual std::string getUnits () const
 
virtual const CCopasiObjectgetValueObject () const
 
virtual bool remove (CCopasiObject *pObject)
 
virtual ~CCopasiContainer ()
 
- Public Member Functions inherited from CCopasiObject
void addDirectDependency (const CCopasiObject *pObject)
 
 CCopasiObject (const CCopasiObject &src, const CCopasiContainer *pParent=NULL)
 
void clearDirectDependencies ()
 
void clearRefresh ()
 
bool dependsOn (DataObjectSet candidates, const DataObjectSet &context=DataObjectSet()) const
 
void getAllDependencies (DataObjectSet &dependencies, const DataObjectSet &context) const
 
virtual CCopasiObjectName getCN () const
 
virtual const DataObjectSetgetDirectDependencies (const DataObjectSet &context=DataObjectSet()) const
 
virtual const std::string & getKey () const
 
CCopasiContainergetObjectAncestor (const std::string &type) const
 
CCopasiDataModelgetObjectDataModel ()
 
const CCopasiDataModelgetObjectDataModel () const
 
const std::string & getObjectName () const
 
CCopasiContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const
CObjectInterface::ObjectSet
getPrerequisites () const
 
virtual RefreshgetRefresh () const
 
UpdateMethodgetUpdateMethod () const
 
virtual voidgetValuePointer () const
 
bool hasCircularDependencies (DataObjectSet &candidates, DataObjectSet &verified, const DataObjectSet &context) const
 
bool hasUpdateMethod () const
 
bool isArray () const
 
bool isContainer () const
 
bool isDataModel () const
 
bool isMatrix () const
 
bool isNameVector () const
 
bool isNonUniqueName () const
 
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const
 
bool isReference () const
 
bool isRoot () const
 
bool isSeparator () const
 
bool isStaticString () const
 
bool isValueBool () const
 
bool isValueDbl () const
 
bool isValueInt () const
 
bool isValueInt64 () const
 
bool isValueString () const
 
bool isVector () const
 
virtual bool mustBeDeleted (const DataObjectSet &deletedObjects) const
 
virtual void print (std::ostream *ostream) const
 
void removeDirectDependency (const CCopasiObject *pObject)
 
void setDirectDependencies (const DataObjectSet &directDependencies)
 
bool setObjectName (const std::string &name)
 
virtual bool setObjectParent (const CCopasiContainer *pParent)
 
void setObjectValue (const C_FLOAT64 &value)
 
void setObjectValue (const C_INT32 &value)
 
void setObjectValue (const bool &value)
 
template<class CType >
void setRefresh (CType *pType, void(CType::*method)(void))
 
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_FLOAT64 &))
 
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const C_INT32 &))
 
template<class CType >
void setUpdateMethod (CType *pType, void(CType::*method)(const bool &))
 
virtual ~CCopasiObject ()
 
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
 
virtual ~CObjectInterface ()
 

Private Member Functions

void initObjects ()
 

Private Attributes

C_FLOAT64 mFittedValue
 
C_FLOAT64 mIndependentValue
 
C_FLOAT64 mMeasuredValue
 
CRegisteredObjectName mModelObjectCN
 
C_FLOAT64 mWeightedError
 

Additional Inherited Members

- Public Types inherited from CCopasiContainer
typedef std::multimap
< std::string, CCopasiObject * > 
objectMap
 
- Public Types inherited from CCopasiObject
typedef std::set< const
CCopasiObject * > 
DataObjectSet
 
typedef std::vector< Refresh * > DataUpdateSequence
 
- Public Types inherited from CObjectInterface
typedef std::set< const
CObjectInterface * > 
ObjectSet
 
typedef std::vector
< CObjectInterface * > 
UpdateSequence
 
- Static Public Member Functions inherited from CCopasiObject
static std::vector< Refresh * > buildUpdateSequence (const DataObjectSet &objects, const DataObjectSet &uptoDateObjects, const DataObjectSet &context=DataObjectSet())
 
static void setRenameHandler (CRenameHandler *rh)
 
- Static Public Attributes inherited from CCopasiContainer
static const std::vector
< CCopasiContainer * > 
EmptyList
 
- Protected Types inherited from CCopasiObject
enum  Flag {
  Container = 0x1, Vector = 0x2, Matrix = 0x4, NameVector = 0x8,
  Reference = 0x10, ValueBool = 0x20, ValueInt = 0x40, ValueInt64 = 0x80,
  ValueDbl = 0x100, NonUniqueName = 0x200, StaticString = 0x400, ValueString = 0x800,
  Separator = 0x1000, ModelEntity = 0x2000, Array = 0x4000, DataModel = 0x8000,
  Root = 0x10000, Gui = 0x20000
}
 
- Protected Member Functions inherited from CCopasiContainer
template<class CType >
CCopasiObjectaddMatrixReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
 
template<class CType >
CCopasiObjectaddObjectReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
 
template<class CType >
CCopasiObjectaddVectorReference (const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
 
void initObjects ()
 
- Protected Member Functions inherited from CCopasiObject
 CCopasiObject ()
 
 CCopasiObject (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", const unsigned C_INT32 &flag=0)
 
- Protected Attributes inherited from CCopasiContainer
objectMap mObjects
 
- Static Protected Attributes inherited from CCopasiObject
static CRenameHandlersmpRenameHandler = NULL
 

Detailed Description

Definition at line 28 of file CExperiment.h.

Constructor & Destructor Documentation

CFittingPoint::CFittingPoint ( const std::string &  name = "unknown",
const CCopasiContainer pParent = NULL 
)

Definition at line 1718 of file CExperiment.cpp.

References initObjects().

1719  :
1720  CCopasiContainer("Fitting Point", pParent, "Fitted Point"),
1721  mModelObjectCN(name),
1722  mIndependentValue(std::numeric_limits<C_FLOAT64>::quiet_NaN()),
1723  mMeasuredValue(std::numeric_limits<C_FLOAT64>::quiet_NaN()),
1724  mFittedValue(std::numeric_limits<C_FLOAT64>::quiet_NaN()),
1725  mWeightedError(std::numeric_limits<C_FLOAT64>::quiet_NaN())
1726 {initObjects();}
C_FLOAT64 mWeightedError
Definition: CExperiment.h:58
C_FLOAT64 mFittedValue
Definition: CExperiment.h:57
CRegisteredObjectName mModelObjectCN
Definition: CExperiment.h:54
C_FLOAT64 mIndependentValue
Definition: CExperiment.h:55
C_FLOAT64 mMeasuredValue
Definition: CExperiment.h:56
CFittingPoint::CFittingPoint ( const CFittingPoint src,
const CCopasiContainer pParent = NULL 
)

Definition at line 1728 of file CExperiment.cpp.

References initObjects().

1729  :
1730  CCopasiContainer(src, pParent),
1736 {initObjects();}
C_FLOAT64 mWeightedError
Definition: CExperiment.h:58
C_FLOAT64 mFittedValue
Definition: CExperiment.h:57
CRegisteredObjectName mModelObjectCN
Definition: CExperiment.h:54
C_FLOAT64 mIndependentValue
Definition: CExperiment.h:55
C_FLOAT64 mMeasuredValue
Definition: CExperiment.h:56
CFittingPoint::~CFittingPoint ( )

Definition at line 1738 of file CExperiment.cpp.

1738 {}

Member Function Documentation

const std::string & CFittingPoint::getModelObjectCN ( ) const

Definition at line 1760 of file CExperiment.cpp.

References mModelObjectCN.

1761 {
1762  return mModelObjectCN;
1763 }
CRegisteredObjectName mModelObjectCN
Definition: CExperiment.h:54
std::string CFittingPoint::getObjectDisplayName ( bool  regular = true,
bool  richtext = false 
) const
virtual

Reimplemented from CCopasiObject.

Definition at line 1741 of file CExperiment.cpp.

References CCopasiContainer::getObject(), CCopasiObject::getObjectDataModel(), CCopasiObject::getObjectDisplayName(), and mModelObjectCN.

1742 {
1743  const CCopasiDataModel * pDataModel = this->getObjectDataModel();
1744 
1745  if (pDataModel == NULL)
1746  {
1747  return CCopasiContainer::getObjectDisplayName(regular, richtext);
1748  }
1749 
1750  const CCopasiObject * pObject = dynamic_cast< const CCopasiObject * >(pDataModel->getObject(mModelObjectCN));
1751 
1752  if (pObject == NULL)
1753  {
1754  return CCopasiContainer::getObjectDisplayName(regular, richtext);
1755  }
1756 
1757  return pObject->getObjectDisplayName(regular, richtext);
1758 }
CCopasiDataModel * getObjectDataModel()
virtual std::string getObjectDisplayName(bool regular=true, bool richtext=false) const
CRegisteredObjectName mModelObjectCN
Definition: CExperiment.h:54
virtual const CObjectInterface * getObject(const CCopasiObjectName &cn) const
void CFittingPoint::initObjects ( )
private

Definition at line 1776 of file CExperiment.cpp.

References CCopasiContainer::addObjectReference(), mFittedValue, mIndependentValue, mMeasuredValue, mWeightedError, and CCopasiObject::ValueDbl.

Referenced by CFittingPoint().

1777 {
1782 }
C_FLOAT64 mWeightedError
Definition: CExperiment.h:58
C_FLOAT64 mFittedValue
Definition: CExperiment.h:57
C_FLOAT64 mIndependentValue
Definition: CExperiment.h:55
CCopasiObject * addObjectReference(const std::string &name, CType &reference, const unsigned C_INT32 &flag=0)
C_FLOAT64 mMeasuredValue
Definition: CExperiment.h:56
void CFittingPoint::setValues ( const C_FLOAT64 independent,
const C_FLOAT64 measured,
const C_FLOAT64 fitted,
const C_FLOAT64 weightedError 
)

Definition at line 1765 of file CExperiment.cpp.

References mFittedValue, mIndependentValue, mMeasuredValue, and mWeightedError.

1769 {
1770  mIndependentValue = independent;
1771  mMeasuredValue = measured;
1772  mFittedValue = fitted;
1773  mWeightedError = weightedError;
1774 }
C_FLOAT64 mWeightedError
Definition: CExperiment.h:58
C_FLOAT64 mFittedValue
Definition: CExperiment.h:57
C_FLOAT64 mIndependentValue
Definition: CExperiment.h:55
C_FLOAT64 mMeasuredValue
Definition: CExperiment.h:56

Member Data Documentation

C_FLOAT64 CFittingPoint::mFittedValue
private

Definition at line 57 of file CExperiment.h.

Referenced by initObjects(), and setValues().

C_FLOAT64 CFittingPoint::mIndependentValue
private

Definition at line 55 of file CExperiment.h.

Referenced by initObjects(), and setValues().

C_FLOAT64 CFittingPoint::mMeasuredValue
private

Definition at line 56 of file CExperiment.h.

Referenced by initObjects(), and setValues().

CRegisteredObjectName CFittingPoint::mModelObjectCN
private

Definition at line 54 of file CExperiment.h.

Referenced by getModelObjectCN(), and getObjectDisplayName().

C_FLOAT64 CFittingPoint::mWeightedError
private

Definition at line 58 of file CExperiment.h.

Referenced by initObjects(), and setValues().


The documentation for this class was generated from the following files: