#include <MultiStimulus.hpp>
Public Member Functions | |
void | AddStimulus (AbstractStimulusFunction *pStimulus) |
double | GetStimulus (double time) |
Private Attributes | |
std::vector < AbstractStimulusFunction * > | mStimuli |
After creation it behaves like a ZeroStimulus until any number of stimuli are added.
Definition at line 44 of file MultiStimulus.hpp.
void MultiStimulus::AddStimulus | ( | AbstractStimulusFunction * | pStimulus | ) |
Combine a stimulus with the existing ones.
pStimulus | pointer to the stimulus to be added. |
Definition at line 32 of file MultiStimulus.cpp.
double MultiStimulus::GetStimulus | ( | double | time | ) | [virtual] |
Get the magnitude of the multiple stimuli at time 'time'
Implements AbstractStimulusFunction.
Definition at line 37 of file MultiStimulus.cpp.