Chaste  Release::2017.1
RandomCaSwitchingUpdateRule< DIM > Class Template Reference

#include <RandomCaSwitchingUpdateRule.hpp>

+ Inheritance diagram for RandomCaSwitchingUpdateRule< DIM >:
+ Collaboration diagram for RandomCaSwitchingUpdateRule< DIM >:

Public Member Functions

 RandomCaSwitchingUpdateRule ()
 
 ~RandomCaSwitchingUpdateRule ()
 
double EvaluateSwitchingProbability (unsigned currentNodeIndex, unsigned neighbourNodeIndex, CaBasedCellPopulation< DIM > &rCellPopulation, double dt, double deltaX)
 
double GetSwitchingParameter ()
 
void SetSwitchingParameter (double switchingParameter)
 
void OutputUpdateRuleParameters (out_stream &rParamsFile)
 
- Public Member Functions inherited from AbstractCaSwitchingUpdateRule< DIM >
 AbstractCaSwitchingUpdateRule ()
 
virtual ~AbstractCaSwitchingUpdateRule ()
 
- Public Member Functions inherited from AbstractUpdateRule< DIM >
 AbstractUpdateRule ()
 
virtual ~AbstractUpdateRule ()
 
void OutputUpdateRuleInfo (out_stream &rParamsFile)
 
- 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)
 

Private Attributes

double mSwitchingParameter
 

Friends

class TestCaUpdateRules
 
class boost::serialization::access
 

Detailed Description

template<unsigned DIM>
class RandomCaSwitchingUpdateRule< DIM >

A random switching update rule for use in cell-based simulations using the cellular CA model.

The probability of performing a switch is

P* delta_t

Where P is the mSwitchingParameter. delta_t is the timestep.

Definition at line 57 of file RandomCaSwitchingUpdateRule.hpp.

Constructor & Destructor Documentation

template<unsigned DIM>
RandomCaSwitchingUpdateRule< DIM >::RandomCaSwitchingUpdateRule ( )

Constructor.

Definition at line 39 of file RandomCaSwitchingUpdateRule.cpp.

Referenced by RandomCaSwitchingUpdateRule< DIM >::serialize().

template<unsigned DIM>
RandomCaSwitchingUpdateRule< DIM >::~RandomCaSwitchingUpdateRule ( )

Destructor.

Definition at line 46 of file RandomCaSwitchingUpdateRule.cpp.

Referenced by RandomCaSwitchingUpdateRule< DIM >::serialize().

Member Function Documentation

template<unsigned DIM>
double RandomCaSwitchingUpdateRule< DIM >::EvaluateSwitchingProbability ( unsigned  currentNodeIndex,
unsigned  neighbourNodeIndex,
CaBasedCellPopulation< DIM > &  rCellPopulation,
double  dt,
double  deltaX 
)
virtual

Calculate the probability of a given switch. Here this is hust

mSwitchingParameter * dt

Parameters
currentNodeIndexThe index of the current node/lattice site
neighbourNodeIndexThe index of the neighbour node/lattice site
rCellPopulationThe cell population
dtis the time interval
deltaXdefines the size of the lattice site
Returns
The probability of the cells associated to the current node and the target node switching.

Implements AbstractCaSwitchingUpdateRule< DIM >.

Definition at line 51 of file RandomCaSwitchingUpdateRule.cpp.

References RandomCaSwitchingUpdateRule< DIM >::mSwitchingParameter.

Referenced by RandomCaSwitchingUpdateRule< DIM >::serialize().

template<unsigned DIM>
double RandomCaSwitchingUpdateRule< DIM >::GetSwitchingParameter ( )
template<unsigned DIM>
void RandomCaSwitchingUpdateRule< DIM >::OutputUpdateRuleParameters ( out_stream &  rParamsFile)
virtual
template<unsigned DIM>
template<class Archive >
void RandomCaSwitchingUpdateRule< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate
template<unsigned DIM>
void RandomCaSwitchingUpdateRule< DIM >::SetSwitchingParameter ( double  switchingParameter)

Set mSwitchingParameter.

Parameters
switchingParameterthe new value of mSwitchingParameter

Definition at line 67 of file RandomCaSwitchingUpdateRule.cpp.

References RandomCaSwitchingUpdateRule< DIM >::mSwitchingParameter.

Referenced by RandomCaSwitchingUpdateRule< DIM >::serialize().

Member Data Documentation


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