11 #include <dpsim-models/SimNode.h>
12 #include <dpsim-models/TopologicalTerminal.h>
16 template <
typename VarType>
20 MatrixVar<VarType> mCurrent;
21 std::weak_ptr<SimNode<VarType>> mNode;
24 typedef std::shared_ptr<SimTerminal<VarType>> Ptr;
25 typedef std::vector<Ptr> List;
31 typename SimNode<VarType>::Ptr node() {
return mNode.lock(); }
33 void setNode(
typename SimNode<VarType>::Ptr node) {
35 setPhaseType(node->phaseType());
40 VarType singleVoltage() {
41 if (node()->isGround())
47 MatrixVar<VarType> voltage() {
48 if (node()->isGround())
51 return node()->voltage();
String uid()
Returns unique id.
TopologicalNode::Ptr topologicalNodes()
Returns reference to TopologicalNode.
PhaseType mPhaseType
Determines the connection between Component and Node.