ElectricEqpmt_Line.h 507 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "BaseElectricEqpmt.h"
  3. class ElectricEqpmt_Line : public BaseElectricEqpmt //电力线路
  4. {
  5. public:
  6. virtual void CalculateValue(double inputv,double inputI,ELEEQPMTMAP* PEqpmtMap);
  7. virtual int GetType()
  8. {
  9. return Electric_EqpmtType_Line;
  10. }
  11. virtual bool PowerIn(ELEEQPMTMAP& eqpmtmap,string sourceid); //通电,线路来电
  12. void SetLength(double length)
  13. {
  14. m_dLength=length;
  15. }
  16. virtual double GetLength()
  17. {
  18. return m_dLength;
  19. }
  20. protected:
  21. double m_dLength; //线路长度
  22. };