Chaste
Release::3.4
|
#include <AbstractModifier.hpp>
Public Member Functions | |
AbstractModifier (void) | |
virtual | ~AbstractModifier () |
virtual double | Calc (double param, double time)=0 |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
This family of classes are used to add simple functions into cell models to modify particular quantities on the fly. Rather than the model using the quantity directly in computing its right-hand side, it calls calc() with the current value and uses the result of that instead.
Clearly for this to work the cell model must be modified to include calls to instances of these classes. PyCml has some experimental support for this, generating subclasses of AbstractCardiacCellWithModifiers.
Definition at line 53 of file AbstractModifier.hpp.
|
inline |
Default constructor.
Definition at line 74 of file AbstractModifier.hpp.
|
inlinevirtual |
Default destructor.
Definition at line 81 of file AbstractModifier.hpp.
Pure virtual function which must be overridden in subclasses to actually perform the modification.
param | the current value of the quantity which is being modified |
time | the current simulation time |
Implemented in FixedModifier, FactorModifier, TimeModifier, and DummyModifier.
|
inlineprivate |
Archive the member variables.
archive | |
version |
Definition at line 65 of file AbstractModifier.hpp.
|
friend |
Needed for serialization.
Definition at line 57 of file AbstractModifier.hpp.