AbstractOdeSystemInformation Class Reference

#include <AbstractOdeSystemInformation.hpp>

Inheritance diagram for AbstractOdeSystemInformation:

Inheritance graph
[legend]
Collaboration diagram for AbstractOdeSystemInformation:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetInitialConditions (const std::vector< double > &rInitialConditions)
void SetInitialConditionsComponent (unsigned index, double initialCondition) throw (std::out_of_range)
std::vector< double > GetInitialConditions () const
std::vector< std::string > & rGetVariableNames ()
std::vector< std::string > & rGetVariableUnits ()
unsigned GetStateVariableNumberByName (const std::string &rName) const
std::string GetStateVariableUnitsByNumber (unsigned varNumber) const

Protected Member Functions

virtual void Initialise (void)=0

Protected Attributes

std::vector< std::string > mVariableNames
std::vector< std::string > mVariableUnits
std::vector< double > mInitialConditions
bool mInitialised


Detailed Description

An abstract class which provides access to information about a particular ODE system *class* (as opposed to an instance).

The information available includes:

This class requires a subclass defining the Initialise method in order to set up the information. Developers may do this by defining their own subclass, but the most convenient method is likely to be to use the OdeSystemInformation class, which is a templated singleton subclass of this AbstractOdeSystemInformation class. See its documentation for details of how to use it.

Definition at line 51 of file AbstractOdeSystemInformation.hpp.


Member Function Documentation

virtual void AbstractOdeSystemInformation::Initialise ( void   )  [protected, pure virtual]

void AbstractOdeSystemInformation::SetInitialConditions ( const std::vector< double > &  rInitialConditions  ) 

Set the suggested initial conditions to use.

Definition at line 43 of file AbstractOdeSystemInformation.cpp.

References mInitialConditions, and mInitialised.

void AbstractOdeSystemInformation::SetInitialConditionsComponent ( unsigned  index,
double  initialCondition 
) throw (std::out_of_range)

Set a single component of the suggested initial conditions to use.

Definition at line 49 of file AbstractOdeSystemInformation.cpp.

References mInitialConditions, and mInitialised.

std::vector< double > AbstractOdeSystemInformation::GetInitialConditions (  )  const

Get a copy of the suggested initial conditions.

Definition at line 55 of file AbstractOdeSystemInformation.cpp.

References mInitialConditions, and mInitialised.

std::vector< std::string > & AbstractOdeSystemInformation::rGetVariableNames (  ) 

Get the variable names vector.

Definition at line 61 of file AbstractOdeSystemInformation.cpp.

References mInitialised, and mVariableNames.

std::vector< std::string > & AbstractOdeSystemInformation::rGetVariableUnits (  ) 

Get the variable units vector.

Definition at line 67 of file AbstractOdeSystemInformation.cpp.

References mInitialised, and mVariableUnits.

unsigned AbstractOdeSystemInformation::GetStateVariableNumberByName ( const std::string &  rName  )  const

This method is used to establish a state varible's position within the vector of state variables of an ODE system. This number can then be used with the method GetStateVariableUnitsByNumber.

Parameters:
name The name of a state variable.
Returns:
The state variable's position within the vector of state variables associated with the ODE system.

Definition at line 73 of file AbstractOdeSystemInformation.cpp.

References mInitialised, and mVariableNames.

std::string AbstractOdeSystemInformation::GetStateVariableUnitsByNumber ( unsigned  varNumber  )  const

Parameters:
varNumber A state variable's position within the vector of state variables associated with the ODE system.
Returns:
The units of the state variable.

Definition at line 86 of file AbstractOdeSystemInformation.cpp.

References mInitialised, and mVariableUnits.


Member Data Documentation

std::vector<std::string> AbstractOdeSystemInformation::mVariableNames [protected]

std::vector<std::string> AbstractOdeSystemInformation::mVariableUnits [protected]

std::vector<double> AbstractOdeSystemInformation::mInitialConditions [protected]


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

Generated on Wed Mar 18 12:52:09 2009 for Chaste by  doxygen 1.5.5