DPsim
|
Public Types | |
typedef std::shared_ptr< TopologicalNode > | Ptr |
typedef std::vector< Ptr > | List |
![]() | |
typedef std::shared_ptr< IdentifiedObject > | Ptr |
typedef std::vector< Ptr > | List |
Public Member Functions | |
TopologicalNode (String uid, String name, PhaseType phaseType, const std::vector< Complex > &initialVoltage) | |
This very general constructor is used by other constructors. | |
Bool | isGround () const |
MatrixComp | initialVoltage () const |
void | setInitialVoltage (MatrixComp voltage) const |
void | setInitialVoltage (Complex voltage) const |
void | setInitialVoltage (Complex voltage, Int phaseIndex) const |
Complex | initialSingleVoltage (PhaseType phaseType=PhaseType::Single) |
PhaseType | phaseType () const |
virtual UInt | matrixNodeIndex (PhaseType phaseType=PhaseType::Single)=0 |
virtual std::vector< UInt > | matrixNodeIndices ()=0 |
virtual void | setMatrixNodeIndex (UInt phase, UInt matrixNodeIndex)=0 |
![]() | |
IdentifiedObject (const String &uid, const String &name) | |
IdentifiedObject (const String &name) | |
AttributeBase::Ptr | attribute (const String &name) const |
Return pointer to an attribute. | |
template<typename T> | |
Attribute< T >::Ptr | attributeTyped (const String &name) const |
Return pointer to an attribute. | |
const AttributeBase::Map & | attributes () const |
String | name () |
String | uid () |
Returns unique id. | |
String | type () |
Get component type (cross-platform) | |
virtual String | description () |
Public Attributes | |
const Attribute< MatrixComp >::Ptr | mInitialVoltage |
![]() | |
const Attribute< String >::Ptr | mName |
Human readable name. | |
const Attribute< String >::Ptr | mUID |
Unique identifier. | |
Protected Attributes | |
PhaseType | mPhaseType = PhaseType::Single |
Bool | mIsGround = false |
![]() | |
AttributeList::Ptr | mAttributes = AttributeList::make() |
Attribute List. | |
Definition at line 17 of file TopologicalNode.h.
typedef std::vector<Ptr> CPS::TopologicalNode::List |
Definition at line 24 of file TopologicalNode.h.
typedef std::shared_ptr<TopologicalNode> CPS::TopologicalNode::Ptr |
Definition at line 23 of file TopologicalNode.h.
|
inline |
Definition at line 28 of file TopologicalNode.h.
TopologicalNode::TopologicalNode | ( | String | uid, |
String | name, | ||
PhaseType | phaseType, | ||
const std::vector< Complex > & | initialVoltage ) |
This very general constructor is used by other constructors.
Definition at line 37 of file TopologicalNode.cpp.
|
inlinevirtual |
Definition at line 33 of file TopologicalNode.h.
Complex TopologicalNode::initialSingleVoltage | ( | PhaseType | phaseType = PhaseType::Single | ) |
Definition at line 55 of file TopologicalNode.cpp.
MatrixComp TopologicalNode::initialVoltage | ( | ) | const |
Definition at line 15 of file TopologicalNode.cpp.
Bool TopologicalNode::isGround | ( | ) | const |
Definition at line 13 of file TopologicalNode.cpp.
|
pure virtual |
Implemented in CPS::SimNode< VarType >, CPS::SimNode< Complex >, CPS::SimNode< Complex >, CPS::SimNode< Real >, and CPS::SimNode< Real >.
|
pure virtual |
Implemented in CPS::SimNode< VarType >, CPS::SimNode< Complex >, CPS::SimNode< Complex >, CPS::SimNode< Real >, and CPS::SimNode< Real >.
PhaseType TopologicalNode::phaseType | ( | ) | const |
Definition at line 35 of file TopologicalNode.cpp.
void TopologicalNode::setInitialVoltage | ( | Complex | voltage | ) | const |
Definition at line 21 of file TopologicalNode.cpp.
void TopologicalNode::setInitialVoltage | ( | Complex | voltage, |
Int | phaseIndex ) const |
Definition at line 31 of file TopologicalNode.cpp.
void TopologicalNode::setInitialVoltage | ( | MatrixComp | voltage | ) | const |
Definition at line 17 of file TopologicalNode.cpp.
const Attribute<MatrixComp>::Ptr CPS::TopologicalNode::mInitialVoltage |
Definition at line 26 of file TopologicalNode.h.
|
protected |
Definition at line 20 of file TopologicalNode.h.
|
protected |
Definition at line 19 of file TopologicalNode.h.