📄 pnseqcal.h
字号:
/*
** Class PQNodeSequenceCalc
** This class caluclates and holds a number of steady state quantities
** from spectrum information. This object can take a voltage and
** current pair and calculate power information.
**
*/
#ifndef PNSEQCAL_INC
#define PNSEQCAL_INC
class PQNodeSequenceCalc
{
private:
int iNumVal;
float *pfZero;
float *pfZeroAng;
float *pfPos;
float *pfPosAng;
float *pfNeg;
float *pfNegAng;
protected:
void CalcSequenceComponents(int iNumPnt,
float *pMag1,float *pAng1,
float *pMag2,float *pAng2,
float *pMag3,float *pAng3);
public:
PQNodeSequenceCalc()
{
pfZero = NULL;
pfZeroAng = NULL;
pfPos = NULL;
pfPosAng = NULL;
pfNeg = NULL;
pfNegAng = NULL;
}
/*
** Main form of the constructor usually called by one of the
** disturbance decoder modules. Not normally called by an app
** directly since app doesn't have direct access to some of the info.
*/
PQNodeSequenceCalc(int iNumPnt,
float *pMag1,float *pAng1,
float *pMag2,float *pAng2,
float *pMag3,float *pAng3);
~PQNodeSequenceCalc();
float GetZero(int iHarm = 1) {return pfZero[iHarm];}
float GetZeroAng(int iHarm = 1) {return pfZeroAng[iHarm];}
float GetPos(int iHarm = 1) {return pfPos[iHarm];}
float GetPosAng(int iHarm = 1) {return pfPosAng[iHarm];}
float GetNeg(int iHarm = 1) {return pfNeg[iHarm];}
float GetNegAng(int iHarm = 1) {return pfNegAng[iHarm];}
float GetDataSize() { return (float)iNumVal; }
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -