DPsim
Loading...
Searching...
No Matches
DCGenerator.h
1/* Copyright 2014 Institute for Automation of Complex Power Systems,
2 * EONERC, RWTH Aachen University
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 *********************************************************************************/
8
9#pragma once
10
11#include <dpsim-models/Signal/SignalGenerator.h>
12
13namespace CPS {
14namespace Signal {
19class DCGenerator : public SignalGenerator, public SharedFactory<DCGenerator> {
20public:
21 const Attribute<Complex>::Ptr mVoltageRef;
23 DCGenerator(String name, Logger::Level logLevel = Logger::Level::off);
25 void setParameters(Real initialReference = 0.0);
27 void step(Real time);
28};
29} // namespace Signal
30} // namespace CPS
void setParameters(Real initialReference=0.0)
set the source's parameters
DCGenerator(String name, Logger::Level logLevel=Logger::Level::off)
init the identified object
void step(Real time)
implementation of inherited method step to update and return the current signal value