![]() |
helics
3.0.1
|
#include <Source.hpp>
Public Member Functions | |
virtual void | set (const std::string ¶meter, double val) |
virtual void | setString (const std::string ¶meter, const std::string &val) |
virtual defV | generate (Time signalTime)=0 |
void | setTime (Time indexTime) |
Protected Attributes | |
Time | lastTime {timeZero} |
Time | keyTime {timeZero} |
parent class for a signal generator which generates values to feed into a helics federation
generate a new value at time signalTime
Implemented in helics::apps::PhasorGenerator, helics::apps::SineGenerator, and helics::apps::RampGenerator.
|
virtual |
set a numerical parameter
Reimplemented in helics::apps::PhasorGenerator, helics::apps::SineGenerator, and helics::apps::RampGenerator.
Referenced by helics::apps::RampGenerator::set(), helics::apps::SineGenerator::set(), and helics::apps::PhasorGenerator::set().
|
virtual |
set a string parameter
Reimplemented in helics::apps::PhasorGenerator.
Referenced by helics::apps::PhasorGenerator::setString().
|
inline |
set the key time