16 #include <dpsim-models/IdentifiedObject.h>
17 #include <dpsim-models/Logger.h>
18 #include <dpsim-models/TopologicalNode.h>
19 #include <dpsim-models/TopologicalTerminal.h>
26 enum Behaviour { Initialization, MNASimulation, PFSimulation };
44 typedef std::shared_ptr<TopologicalPowerComp> Ptr;
45 typedef std::vector<Ptr> List;
49 Logger::Level logLevel = Logger::Level::off)
71 SPDLOG_LOGGER_INFO(
mSLog,
"Set component behaviour to Initialization");
72 else if (
mBehaviour == Behaviour::PFSimulation)
73 SPDLOG_LOGGER_INFO(
mSLog,
"Set component behaviour to PFSimulation");
74 else if (
mBehaviour == Behaviour::MNASimulation)
75 SPDLOG_LOGGER_INFO(
mSLog,
"Set component behaviour to MNASimulation");
77 SPDLOG_LOGGER_WARN(
mSLog,
78 "Set component behaviour not fully supported yet");
String uid()
Returns unique id.
UInt mNumTerminals
Determines the number of Terminals which can be connected to network Nodes.
Logger::Level mLogLevel
Component logger control for internal variables.
UInt mNumVirtualNodes
Determines the number of virtual or internal Nodes.
bool mParametersSet
Flag indicating that parameters are set via setParameters() function.
Logger::Log mSLog
Component logger.
virtual ~TopologicalPowerComp()
Destructor - does not do anything.
virtual TopologicalTerminal::List topologicalTerminals()=0
Returns terminal that are part of the component.
TopologicalPowerComp(String name, Logger::Level logLevel=Logger::Level::off)
Basic constructor that takes name and log level and sets the UID to name as well.
void setBehaviour(Behaviour behaviour)
Set behavior of component, e.g. initialization.
virtual TopologicalNode::List topologicalNodes()=0
Returns nodes connected to this component.
TopologicalPowerComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Basic constructor that takes UID, name and log level.