#include "dg.h" DG::DG(const QPair &fromTo, double DGCapacity,const QString &id,QObject *parent):Branch(fromTo.first,fromTo.second,parent) { this->id=id; this->capacity=DGCapacity; } DG::~DG() { } void DG::extract() { //单位阻抗 double r0=0; double x0=0.001; double g0=0; double b0=0; this->r=r0; this->x=x0; this->g1=g0; this->g2=g0; this->b1=b0; this->b2=b0; }