#include <SimpleStimulus.hpp>
Public Member Functions | |
SimpleStimulus (double magnitudeOfStimulus, double duration, double timeOfStimulus=0.0) | |
virtual | ~SimpleStimulus () |
double | GetStimulus (double time) |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mMagnitudeOfStimulus |
double | mDuration |
double | mTimeOfStimulus |
Friends | |
class | boost::serialization::access |
Definition at line 46 of file SimpleStimulus.hpp.
SimpleStimulus::SimpleStimulus | ( | double | magnitudeOfStimulus, | |
double | duration, | |||
double | timeOfStimulus = 0.0 | |||
) |
Constructor.
magnitudeOfStimulus | The stimulus magnitude | |
duration | Duration of initial stimulus | |
timeOfStimulus | The time at which the stimulus starts (defaults to 0.0) |
Definition at line 37 of file SimpleStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, and mTimeOfStimulus.
SimpleStimulus::~SimpleStimulus | ( | ) | [virtual] |
void SimpleStimulus::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the simple stimulus, never used directly - boost uses this.
archive | ||
version |
Reimplemented from AbstractStimulusFunction.
Definition at line 57 of file SimpleStimulus.hpp.
References mDuration, mMagnitudeOfStimulus, and mTimeOfStimulus.
double SimpleStimulus::GetStimulus | ( | double | time | ) | [virtual] |
Returns the stimulus at a given time.
time | time at which to return the stimulus |
Implements AbstractStimulusFunction.
Definition at line 59 of file SimpleStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, and mTimeOfStimulus.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractStimulusFunction.
Definition at line 49 of file SimpleStimulus.hpp.
double SimpleStimulus::mMagnitudeOfStimulus [private] |
The stimulus magnitude, typically in microA/cm^2
Definition at line 68 of file SimpleStimulus.hpp.
Referenced by GetStimulus(), serialize(), and SimpleStimulus().
double SimpleStimulus::mDuration [private] |
Duration of initial stimulus, typically in milliseconds
Definition at line 70 of file SimpleStimulus.hpp.
Referenced by GetStimulus(), serialize(), and SimpleStimulus().
double SimpleStimulus::mTimeOfStimulus [private] |
The time at which the stimulus starts, typically in milliseconds
Definition at line 72 of file SimpleStimulus.hpp.
Referenced by GetStimulus(), serialize(), and SimpleStimulus().