ElectricEqpmt_Station400VLoad.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #pragma once
  2. #include "BaseElectricEqpmt.h"
  3. #include <map>
  4. #include <vector>
  5. using namespace std;
  6. class Station400VLoadItem
  7. {
  8. friend class ElectricEqpmt_Station400VLoadUnit;
  9. friend class ElectricEqpmt_Station400VLoad;
  10. public:
  11. Station400VLoadItem();
  12. ~Station400VLoadItem();
  13. private:
  14. int m_nButtonID;
  15. string m_strEqpmtID;
  16. string m_strInputStrID;
  17. };
  18. // // 车站400V三级负荷单元
  19. class ElectricEqpmt_Station400VLoadUnit
  20. {
  21. public:
  22. ElectricEqpmt_Station400VLoadUnit();
  23. ~ElectricEqpmt_Station400VLoadUnit();
  24. void UpdateCutStatus( int nCutMark );
  25. int GetCutMark()
  26. {
  27. return m_nCutMark;
  28. }
  29. void Add400VLoadData( const string& strEqpmtID, const string& strInputStrID, int nButtonID );
  30. void CheckInputEqpmt(ELEEQPMTMAP* ElectricEqpmtMap, const string& strInputStrID );
  31. void CheckInputEqpmt_Off(ELEEQPMTMAP* ElectricEqpmtMap, const string& strInputStrID );
  32. void CheckInputEqpmt_On(ELEEQPMTMAP* ElectricEqpmtMap, const string& strInputStrID );
  33. /*
  34. 断开三级负荷开关
  35. */
  36. void CutAllSwitch( ELEEQPMTMAP* ElectricEqpmtMap, const string& strInputStrID );
  37. void CutAllSwitchEqpmt( ELEEQPMTMAP* ElectricEqpmtMap, const string& strEqpmtID, const string& strInputStrID );
  38. /*
  39. 三级负荷开关合闸
  40. */
  41. void OnAllSwitch( ELEEQPMTMAP* ElectricEqpmtMap, const string& strInputStrID );
  42. void OnAllSwitchEqpmt( ELEEQPMTMAP* ElectricEqpmtMap, const string& strEqpmtID, const string& strInputStrID );
  43. //设置延时指针
  44. void SetDelayMap(DELAYMAP* delaymap){p_DelayTimeMap=delaymap;}
  45. public:
  46. int m_nButtonID;
  47. int m_nCutMark;
  48. string m_strRelationBolt;
  49. map<string,Station400VLoadItem> m_mapStation400VLoadItem;
  50. DELAYMAP* p_DelayTimeMap;
  51. };
  52. // 车站400V三级负荷
  53. class ElectricEqpmt_Station400VLoad
  54. {
  55. public:
  56. ElectricEqpmt_Station400VLoad();
  57. ~ElectricEqpmt_Station400VLoad();
  58. void Update400VLoadCut( int nThreeLoadUnitID, int nCutMark );
  59. void Add400VLoadData( const string& strEqpmtID, const string& strInputStrID, int nButtonID, const string& strRelationBoltID );
  60. void CheckInputEqpmt(ELEEQPMTMAP* ElectricEqpmtMap, const string& strInputStrID, int nButtonID );
  61. //设置延时指针
  62. void SetDelayMap(DELAYMAP* delaymap);
  63. public:
  64. int m_nStationID;
  65. map<int, ElectricEqpmt_Station400VLoadUnit> m_mapStation400VLoadUnit;
  66. };