#include <RegularStimulus.hpp>


Public Member Functions | |
| RegularStimulus (double magnitudeOfStimulus, double duration, double period, double startTime, double stopTime=DBL_MAX) | |
| ~RegularStimulus () | |
| 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 | mPeriod |
| double | mStartTime |
| double | mStopTime |
Friends | |
| class | boost::serialization::access |
Definition at line 45 of file RegularStimulus.hpp.
| RegularStimulus::RegularStimulus | ( | double | magnitudeOfStimulus, | |
| double | duration, | |||
| double | period, | |||
| double | startTime, | |||
| double | stopTime = DBL_MAX | |||
| ) |
Constructor for RegularStimulus
| magnitudeOfStimulus | The size of the stimulus | |
| duration | How long the square wave is applied for | |
| period | The time between square waves being applied | |
| startTime | The time at which the first wave is applied | |
| stopTime | The time the stimulus is removed (defaults to DBL_MAX if omitted) |
Definition at line 43 of file RegularStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
| RegularStimulus::~RegularStimulus | ( | ) |
Destructor
Definition at line 61 of file RegularStimulus.cpp.
| void RegularStimulus::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 RegularStimulus.hpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
| double RegularStimulus::GetStimulus | ( | double | time | ) | [virtual] |
Get the magnitude of stimulus at time 'time'
| time | The current time |
Implements AbstractStimulusFunction.
Definition at line 72 of file RegularStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractStimulusFunction.
Definition at line 49 of file RegularStimulus.hpp.
double RegularStimulus::mMagnitudeOfStimulus [private] |
The 'height' of the square wave applied
Definition at line 69 of file RegularStimulus.hpp.
Referenced by GetStimulus(), RegularStimulus(), and serialize().
double RegularStimulus::mDuration [private] |
The length of the square wave
Definition at line 71 of file RegularStimulus.hpp.
Referenced by GetStimulus(), RegularStimulus(), and serialize().
double RegularStimulus::mPeriod [private] |
The time between applications of the wave
Definition at line 73 of file RegularStimulus.hpp.
Referenced by GetStimulus(), RegularStimulus(), and serialize().
double RegularStimulus::mStartTime [private] |
The time at which the first wave is applied
Definition at line 75 of file RegularStimulus.hpp.
Referenced by GetStimulus(), RegularStimulus(), and serialize().
double RegularStimulus::mStopTime [private] |
The time at which all stimuli are removed (even if halfway through a wave)
Definition at line 77 of file RegularStimulus.hpp.
Referenced by GetStimulus(), RegularStimulus(), and serialize().
1.5.5