11 #include <dpsim-models/SimSignalComp.h>
21 typedef std::shared_ptr<SignalGenerator> Ptr;
22 typedef std::vector<Ptr> List;
28 Logger::Level logLevel = Logger::Level::off);
30 SignalGenerator(String name, Logger::Level logLevel = Logger::Level::off)
32 SPDLOG_LOGGER_INFO(
mSLog,
"Create {} {}",
type(), name);
36 virtual void step(Real time) = 0;
String uid()
Returns unique id.
String type()
Get component type (cross-platform)
Model to generate generic signals.
Complex getSignal()
returns current signal value without updating it
virtual void step(Real time)=0
updates current signal
Logger::Log mSLog
Component logger.