#include <RegularStimulus.hpp>


Public Member Functions | |
| RegularStimulus (double magnitudeOfStimulus, double duration, double period, double startTime, double stopTime=DBL_MAX) | |
| double | GetStimulus (double time) |
| double | GetPeriod () |
| double | GetMagnitude () |
| double | GetDuration () |
| double | GetStartTime () |
| void | SetPeriod (double period) |
| void | SetStartTime (double startTime) |
| void | SetStopTime (double stopTime) |
Protected Attributes | |
| double | mMagnitudeOfStimulus |
| double | mDuration |
| double | mPeriod |
| double | mStartTime |
| double | mStopTime |
Private Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &archive, const unsigned int version) |
Friends | |
| class | boost::serialization::access |
Definition at line 41 of file RegularStimulus.hpp.
| RegularStimulus::RegularStimulus | ( | double | magnitudeOfStimulus, | |
| double | duration, | |||
| double | period, | |||
| double | startTime, | |||
| double | stopTime = DBL_MAX | |||
| ) |
Create a new stimulus.
| 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 36 of file RegularStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
| 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.
Reimplemented in RegularStimulusZeroNetCharge.
Definition at line 53 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.
Reimplemented in RegularStimulusZeroNetCharge.
Definition at line 51 of file RegularStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
| double RegularStimulus::GetPeriod | ( | ) |
Definition at line 76 of file RegularStimulus.cpp.
References mPeriod.
| double RegularStimulus::GetMagnitude | ( | ) |
Definition at line 81 of file RegularStimulus.cpp.
References mMagnitudeOfStimulus.
| double RegularStimulus::GetDuration | ( | ) |
Definition at line 86 of file RegularStimulus.cpp.
References mDuration.
| double RegularStimulus::GetStartTime | ( | ) |
Definition at line 91 of file RegularStimulus.cpp.
References mStartTime.
| void RegularStimulus::SetPeriod | ( | double | period | ) |
set the pacing cycle length ('period') of the stimulus.
| period | The stimulus pacing cycle length to use. |
Definition at line 96 of file RegularStimulus.cpp.
References mPeriod.
| void RegularStimulus::SetStartTime | ( | double | startTime | ) |
Set the stimulus to start at a particular time.
| startTime | the time the stimulus should begin. |
Definition at line 101 of file RegularStimulus.cpp.
References mStartTime.
| void RegularStimulus::SetStopTime | ( | double | stopTime | ) |
Set the stop time for this stimulus. It will never be applied after this time.
| stopTime |
Definition at line 106 of file RegularStimulus.cpp.
References mStopTime.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractStimulusFunction.
Reimplemented in RegularStimulusZeroNetCharge.
Definition at line 45 of file RegularStimulus.hpp.
double RegularStimulus::mMagnitudeOfStimulus [protected] |
The 'height' of the square wave applied
Definition at line 67 of file RegularStimulus.hpp.
Referenced by GetMagnitude(), RegularStimulusZeroNetCharge::GetStimulus(), GetStimulus(), RegularStimulus(), and serialize().
double RegularStimulus::mDuration [protected] |
The length of the square wave
Definition at line 69 of file RegularStimulus.hpp.
Referenced by GetDuration(), RegularStimulusZeroNetCharge::GetStimulus(), GetStimulus(), RegularStimulus(), and serialize().
double RegularStimulus::mPeriod [protected] |
The time between applications of the wave
Definition at line 71 of file RegularStimulus.hpp.
Referenced by GetPeriod(), RegularStimulusZeroNetCharge::GetStimulus(), GetStimulus(), RegularStimulus(), serialize(), and SetPeriod().
double RegularStimulus::mStartTime [protected] |
The time at which the first wave is applied
Definition at line 73 of file RegularStimulus.hpp.
Referenced by GetStartTime(), RegularStimulusZeroNetCharge::GetStimulus(), GetStimulus(), RegularStimulus(), serialize(), and SetStartTime().
double RegularStimulus::mStopTime [protected] |
The time at which all stimuli are removed (even if halfway through a wave)
Definition at line 75 of file RegularStimulus.hpp.
Referenced by RegularStimulusZeroNetCharge::GetStimulus(), GetStimulus(), RegularStimulus(), serialize(), and SetStopTime().
1.5.5