#include <OdeSystemInformation.hpp>
Public Member Functions | |
template<> | |
void | Initialise () |
template<> | |
void | Initialise () |
template<> | |
void | Initialise (void) |
template<> | |
void | Initialise (void) |
template<> | |
void | Initialise (void) |
template<> | |
void | Initialise (void) |
template<> | |
void | Initialise () |
Static Public Member Functions | |
static boost::shared_ptr < OdeSystemInformation < ODE_SYSTEM > > | Instance () |
Protected Member Functions | |
OdeSystemInformation () | |
OdeSystemInformation (const OdeSystemInformation< ODE_SYSTEM > &) | |
OdeSystemInformation & | operator= (const OdeSystemInformation< ODE_SYSTEM > &) |
void | Initialise () |
Static Private Attributes | |
static boost::shared_ptr < OdeSystemInformation < ODE_SYSTEM > > | mpInstance |
All ODE system developers need to do is provide a specialisation of the Initialise method of this class, and set mpSystemInfo in their constructor: mpSystemInfo = OdeSystemInformation<CLASS>::Instance();
This class contains all the machinery to make it a singleton, hence providing exactly one instance per value of the template parameter.
Definition at line 48 of file OdeSystemInformation.hpp.
OdeSystemInformation< ODE_SYSTEM >::OdeSystemInformation | ( | ) | [inline, protected] |
Default constructor.
Not user accessible - to obtain an instance of this class use the Instance method.
Definition at line 119 of file OdeSystemInformation.hpp.
References OdeSystemInformation< ODE_SYSTEM >::mpInstance.
OdeSystemInformation< ODE_SYSTEM >::OdeSystemInformation | ( | const OdeSystemInformation< ODE_SYSTEM > & | ) | [protected] |
Copy constructor.
OdeSystemInformation& OdeSystemInformation< ODE_SYSTEM >::operator= | ( | const OdeSystemInformation< ODE_SYSTEM > & | ) | [protected] |
Overloaded assignment operator.
void OdeSystemInformation< ODE_SYSTEM >::Initialise | ( | void | ) | [inline, protected, virtual] |
Generic implementation of Initialise, which does nothing.
Developers should specialise this method to their ODE system. For example,
template<> void OdeSystemInformation<MyNewOdeSystem>::Initialise() { this->mVariableNames.push_back("Variable 1"); this->mVariableUnits.push_back("Units 1"); this->mInitialConditions.push_back(0.0);
this->mInitialised = true; }
Implements AbstractOdeSystemInformation.
Definition at line 126 of file OdeSystemInformation.hpp.
boost::shared_ptr< OdeSystemInformation< ODE_SYSTEM > > OdeSystemInformation< ODE_SYSTEM >::Instance | ( | ) | [inline, static] |
Return a pointer to the singleton instance, creating it if necessary.
Definition at line 108 of file OdeSystemInformation.hpp.
References OdeSystemInformation< ODE_SYSTEM >::mpInstance.
Referenced by FakeBathCell::FakeBathCell(), FitzHughNagumo1961OdeSystem::FitzHughNagumo1961OdeSystem(), Kerchoffs2003ContractionModel::Kerchoffs2003ContractionModel(), Nash2004ContractionModel::Nash2004ContractionModel(), NhsContractionModel::NhsContractionModel(), and TysonNovak2001OdeSystem::TysonNovak2001OdeSystem().
void OdeSystemInformation< Kerchoffs2003ContractionModel >::Initialise | ( | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 141 of file Kerchoffs2003ContractionModel.cpp.
References AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
void OdeSystemInformation< Nash2004ContractionModel >::Initialise | ( | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 35 of file Nash2004ContractionModel.cpp.
References AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
void OdeSystemInformation< NhsContractionModel >::Initialise | ( | void | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 216 of file NhsContractionModel.cpp.
References AbstractOdeSystemInformation::mInitialConditions, AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
void OdeSystemInformation< FakeBathCell >::Initialise | ( | void | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 61 of file FakeBathCell.cpp.
References AbstractOdeSystemInformation::mInitialised.
void OdeSystemInformation< FitzHughNagumo1961OdeSystem >::Initialise | ( | void | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 88 of file FitzHughNagumo1961OdeSystem.cpp.
References AbstractOdeSystemInformation::mInitialConditions, AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
void OdeSystemInformation< CML_noble_varghese_kohl_noble_1998_basic_with_sac >::Initialise | ( | void | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 597 of file NobleVargheseKohlNoble1998WithSac.cpp.
References AbstractOdeSystemInformation::mInitialConditions, AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
void OdeSystemInformation< TysonNovak2001OdeSystem >::Initialise | ( | ) | [inline, virtual] |
Initialise the ODE system information.
This must be provided by subclasses.
Implements AbstractOdeSystemInformation.
Definition at line 246 of file TysonNovak2001OdeSystem.cpp.
References AbstractOdeSystemInformation::mInitialConditions, AbstractOdeSystemInformation::mInitialised, AbstractOdeSystemInformation::mVariableNames, and AbstractOdeSystemInformation::mVariableUnits.
boost::shared_ptr< OdeSystemInformation< ODE_SYSTEM > > OdeSystemInformation< ODE_SYSTEM >::mpInstance [inline, static, private] |
The single instance of this class, for this ODE_SYSTEM.
Definition at line 58 of file OdeSystemInformation.hpp.
Referenced by OdeSystemInformation< ODE_SYSTEM >::Instance(), and OdeSystemInformation< ODE_SYSTEM >::OdeSystemInformation().