Chaste  Release::2017.1
AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM > Class Template Referenceabstract

#include <AbstractCellBasedSimulationModifier.hpp>

+ Inheritance diagram for AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >:
+ Collaboration diagram for AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >:

Public Member Functions

 AbstractCellBasedSimulationModifier ()
 
virtual ~AbstractCellBasedSimulationModifier ()
 
virtual void UpdateAtEndOfTimeStep (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation)=0
 
virtual void UpdateAtEndOfOutputTimeStep (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation)
 
virtual void SetupSolve (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation, std::string outputDirectory)=0
 
virtual void UpdateAtEndOfSolve (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation)
 
void OutputSimulationModifierInfo (out_stream &rParamsFile)
 
virtual void OutputSimulationModifierParameters (out_stream &rParamsFile)=0
 
- Public Member Functions inherited from Identifiable
virtual ~Identifiable ()
 
std::string GetIdentifier () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)
 

Friends

class boost::serialization::access
 

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
class AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >

An abstract modifier class (to implement setup, update and finalise methods), for use in cell-based simulations.

Definition at line 48 of file AbstractCellBasedSimulationModifier.hpp.

Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::AbstractCellBasedSimulationModifier ( )

Default constructor.

Definition at line 39 of file AbstractCellBasedSimulationModifier.cpp.

Referenced by AbstractCellBasedSimulationModifier< DIM, DIM >::serialize().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::~AbstractCellBasedSimulationModifier ( )
virtual

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::OutputSimulationModifierInfo ( out_stream &  rParamsFile)

Output the modifier type used in the simulation to file and then call OutputSimulationModifierParameters() to output all relevant parameters.

Parameters
rParamsFilethe file stream to which the parameters are output

Definition at line 49 of file AbstractCellBasedSimulationModifier.cpp.

Referenced by AbstractCellBasedSimulationModifier< DIM, DIM >::UpdateAtEndOfSolve().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
template<class Archive >
void AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate

Serialize the object.

Parameters
archivethe archive
versionthe current version of this class

Definition at line 59 of file AbstractCellBasedSimulationModifier.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
virtual void AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::SetupSolve ( AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &  rCellPopulation,
std::string  outputDirectory 
)
pure virtual

Specify what to do in the simulation before the start of the time loop.

As this method is pure virtual, it must be overridden in subclasses.

Parameters
rCellPopulationreference to the cell population
outputDirectorythe output directory, relative to where Chaste output is stored

Referenced by AbstractCellBasedSimulationModifier< DIM, DIM >::UpdateAtEndOfOutputTimeStep().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
virtual void AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::UpdateAtEndOfOutputTimeStep ( AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &  rCellPopulation)
inlinevirtual

Specify what to do in the simulation at the end of each output timestep, after UpdateAtEndOfTimeStep() has been called.

Parameters
rCellPopulationreference to the cell population

Definition at line 91 of file AbstractCellBasedSimulationModifier.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
virtual void AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::UpdateAtEndOfSolve ( AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &  rCellPopulation)
inlinevirtual

Specify what to do in the simulation at the end of each time loop.

Parameters
rCellPopulationreference to the cell population

Definition at line 111 of file AbstractCellBasedSimulationModifier.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
virtual void AbstractCellBasedSimulationModifier< ELEMENT_DIM, SPACE_DIM >::UpdateAtEndOfTimeStep ( AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &  rCellPopulation)
pure virtual

Specify what to do in the simulation at the end of each timestep.

As this method is pure virtual, it must be overridden in subclasses.

Parameters
rCellPopulationreference to the cell population

Referenced by AbstractCellBasedSimulationModifier< DIM, DIM >::serialize().

Friends And Related Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
friend class boost::serialization::access
friend

Needed for serialization.

Definition at line 51 of file AbstractCellBasedSimulationModifier.hpp.


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