Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
StabilityEventList.h
1#ifndef STABILITYEVENTLIST_H
2#define STABILITYEVENTLIST_H
3#include "DataReportBase.h"
4
5class Element;
6class PowerElement;
7class Bus;
9
10class StabilityEventList : public StabilityEventListBase
11{
12 public:
13 StabilityEventList(wxWindow* parent, std::vector<Element*> elementList);
14 virtual ~StabilityEventList();
15
16 protected:
17 virtual void OnOKButtonClick(wxCommandEvent& event) { EndModal(wxID_OK); };
18 virtual void GetTimeEventsList();
19 virtual void AddEvent(double eventTime, wxString eventType, wxString eventDescription, wxColour eventColour);
20 virtual void FillGrid();
21 virtual void SortEvents();
22 virtual void SetRowsColours(wxGrid* grid, int rowStart = 1);
23 void SetPowerElementSwitchingEvent(PowerElement* element, wxString elementName);
24
25 std::vector<Element*> m_elementList;
26 std::vector<double> m_time;
27 std::vector<wxString> m_eventType;
28 std::vector<wxString> m_eventDescription;
29 std::vector<wxColour> m_eventColour;
30
31 // Cell colours
32 wxColour m_headerColour = wxColour(150, 150, 150);
33 wxColour m_oddRowColour = wxColour(220, 220, 220);
34 wxColour m_evenRowColour = wxColour(255, 255, 255);
35 wxColour m_redColour = wxColour(255, 0, 0);
36 wxColour m_blueColour = wxColour(0, 0, 255);
37};
38#endif // STABILITYEVENTLIST_H
Node for power elements. All others power elements are connected through this.
Definition Bus.h:86
Base class for electrical calculations providing general utility methods.
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Definition Element.h:112
Abstract class of power elements.