37 #ifndef _REGULARSTIMULUS_HPP_
38 #define _REGULARSTIMULUS_HPP_
41 #include <boost/serialization/base_object.hpp>
43 #include "AbstractStimulusFunction.hpp"
59 template<
class Archive>
60 void serialize(Archive & archive,
const unsigned int version)
63 archive & boost::serialization::base_object<AbstractStimulusFunction>(*this);
94 RegularStimulus(
double magnitudeOfStimulus,
double duration,
double period,
double startTime,
double stopTime=DBL_MAX);
170 namespace serialization
176 template<
class Archive>
177 inline void load_construct_data(
191 #endif //_REGULARSTIMULUS_HPP_
void serialize(Archive &archive, const unsigned int version)
void SetPeriod(double period)
void SetDuration(double duration)
void SetMagnitude(double magnitude)
void SetStopTime(double stopTime)
double mMagnitudeOfStimulus
double GetStimulus(double time)
friend class boost::serialization::access
#define CHASTE_CLASS_EXPORT(T)
RegularStimulus(double magnitudeOfStimulus, double duration, double period, double startTime, double stopTime=DBL_MAX)
void SetStartTime(double startTime)