11 #include <dpsim-models/Task.h>
12 #include <dpsim-models/TopologicalSignalComp.h>
19 enum Behaviour { Initialization, Simulation };
27 typedef std::shared_ptr<SimSignalComp> Ptr;
28 typedef std::vector<Ptr> List;
32 Logger::Level logLevel = Logger::Level::off)
35 SimSignalComp(String name, Logger::Level logLevel = Logger::Level::off)
38 virtual ~SimSignalComp() {}
41 virtual void initialize(Real timeStep) {}
43 virtual void initialize(Real omega, Real timeStep) { initialize(timeStep); }
45 virtual Task::List getTasks() {
return Task::List(); }
String uid()
Returns unique id.
void setBehaviour(Behaviour behaviour)
Set behavior of component, e.g. initialization.