RegularStimulus Class Reference

#include <RegularStimulus.hpp>

Inheritance diagram for RegularStimulus:

Inheritance graph
[legend]
Collaboration diagram for RegularStimulus:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RegularStimulus (double magnitudeOfStimulus, double duration, double period, double startTime, double stopTime=DBL_MAX)
 ~RegularStimulus ()
double GetStimulus (double time)

Private Attributes

double mMagnitudeOfStimulus
double mDuration
double mPeriod
double mStartTime
double mStopTime


Detailed Description

Provides a periodic square-wave stimulus.

Definition at line 38 of file RegularStimulus.hpp.


Constructor & Destructor Documentation

RegularStimulus::RegularStimulus ( double  magnitudeOfStimulus,
double  duration,
double  period,
double  startTime,
double  stopTime = DBL_MAX 
)

Constructor for RegularStimulus

Parameters:
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.


Member Function Documentation

double RegularStimulus::GetStimulus ( double  time  )  [virtual]

Get the magnitude of stimulus at time 'time'

Parameters:
time The current time
Returns:
Magnitude of stimulus

Implements AbstractStimulusFunction.

Definition at line 72 of file RegularStimulus.cpp.

References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.


Member Data Documentation

The 'height' of the square wave applied

Definition at line 42 of file RegularStimulus.hpp.

Referenced by GetStimulus(), and RegularStimulus().

double RegularStimulus::mDuration [private]

The length of the square wave

Definition at line 44 of file RegularStimulus.hpp.

Referenced by GetStimulus(), and RegularStimulus().

double RegularStimulus::mPeriod [private]

The time between applications of the wave

Definition at line 46 of file RegularStimulus.hpp.

Referenced by GetStimulus(), and RegularStimulus().

double RegularStimulus::mStartTime [private]

The time at which the first wave is applied

Definition at line 48 of file RegularStimulus.hpp.

Referenced by GetStimulus(), and RegularStimulus().

double RegularStimulus::mStopTime [private]

The time at which all stimuli are removed (even if halfway through a wave)

Definition at line 50 of file RegularStimulus.hpp.

Referenced by GetStimulus(), and RegularStimulus().


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

Generated on Wed Mar 18 12:52:48 2009 for Chaste by  doxygen 1.5.5