summaryrefslogtreecommitdiffstats
path: root/Project/FrequencyResponseForm.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-07-18 09:22:27 -0300
committerGitHub <noreply@github.com>2019-07-18 09:22:27 -0300
commit8357c081eb75147bb8f94d8b6e367d88ea3898ed (patch)
tree9d9726fdcefb917475d6b33344d2b832d4e78ef8 /Project/FrequencyResponseForm.h
parent295b775ad53eb1e128b705e6028f9690dc6fa640 (diff)
parent7f46d390b8cc1d5f37560f52b222198dbc5e1225 (diff)
downloadPSP.git-8357c081eb75147bb8f94d8b6e367d88ea3898ed.tar.gz
PSP.git-8357c081eb75147bb8f94d8b6e367d88ea3898ed.tar.xz
PSP.git-8357c081eb75147bb8f94d8b6e367d88ea3898ed.zip
Merge pull request #50 from Thales1330/wip/induction-motor
Wip/induction motor
Diffstat (limited to 'Project/FrequencyResponseForm.h')
-rw-r--r--Project/FrequencyResponseForm.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Project/FrequencyResponseForm.h b/Project/FrequencyResponseForm.h
new file mode 100644
index 0000000..0a192a7
--- /dev/null
+++ b/Project/FrequencyResponseForm.h
@@ -0,0 +1,36 @@
+#ifndef FREQUENCYRESPONSEFORM_H
+#define FREQUENCYRESPONSEFORM_H
+#include "PropertiesFormBase.h"
+
+class Bus;
+
+class FrequencyResponseForm : public FrequencyResponseFormBase
+{
+ public:
+ FrequencyResponseForm(wxWindow* parent);
+ FrequencyResponseForm(wxWindow* parent,
+ std::vector<Bus*> busList,
+ int injCurrentBus,
+ double initFreq,
+ double endFreq,
+ double stepFreq);
+ virtual ~FrequencyResponseForm();
+
+ double GetEndFreq() const { return m_endFreq; }
+ double GetInitFreq() const { return m_initFreq; }
+ double GetStepFreq() const { return m_stepFreq; }
+ int GetInjBusNumber() { return m_injBusNumber; }
+
+ protected:
+ virtual void OnCancelButtonClick(wxCommandEvent& event);
+ virtual void OnRunButtonClick(wxCommandEvent& event);
+
+ std::vector<Bus*> m_busList;
+ wxWindow* m_parent;
+ int m_injBusNumber = 0;
+
+ double m_initFreq = 0.0;
+ double m_endFreq = 1500.0;
+ double m_stepFreq = 1.0;
+};
+#endif // FREQUENCYRESPONSEFORM_H