2015-01-30 21:34:31 +08:00
|
|
|
#ifndef DG_H
|
|
|
|
|
#define DG_H
|
|
|
|
|
|
|
|
|
|
#include <QPair>
|
|
|
|
|
#include <QString>
|
2015-03-10 20:39:57 +08:00
|
|
|
#include <cmath>
|
2015-01-30 21:34:31 +08:00
|
|
|
#include "branch.h"
|
|
|
|
|
class DG:public Branch
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DG(const QPair<QString, QString> &fromTo, double DGCapacity, const QString &id, QObject *parent=0);
|
|
|
|
|
DG();
|
2015-03-10 20:39:57 +08:00
|
|
|
double getPG(double pf);//有功出力
|
|
|
|
|
double getQG(double pf);//无功出力
|
2015-01-30 21:34:31 +08:00
|
|
|
~DG();
|
|
|
|
|
QString id;
|
|
|
|
|
double capacity;
|
|
|
|
|
private:
|
|
|
|
|
virtual void extract();
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // DG_H
|