23 lines
351 B
C++
23 lines
351 B
C++
#ifndef BRANCH_H
|
|
#define BRANCH_H
|
|
#include <QString>
|
|
class Branch
|
|
{
|
|
public:
|
|
Branch(const QString& from, const QString& to);
|
|
protected:
|
|
double r;
|
|
double x;
|
|
QString from;
|
|
QString to;
|
|
double ratio;//变比
|
|
double b1;
|
|
double b2;
|
|
double g1;
|
|
double g2;
|
|
protected:
|
|
virtual void extract()=0;
|
|
};
|
|
|
|
#endif // BRANCH_H
|