summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/IndMotor.h')
-rw-r--r--Project/IndMotor.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/Project/IndMotor.h b/Project/IndMotor.h
new file mode 100644
index 0000000..491c714
--- /dev/null
+++ b/Project/IndMotor.h
@@ -0,0 +1,34 @@
+#ifndef INDMOTOR_H
+#define INDMOTOR_H
+
+#include "Machines.h"
+
+class IndMotorForm;
+
+struct IndMotorElectricalData
+{
+ wxString name;
+ double activePower = 100.0;
+ ElectricalUnit activePowerUnit = UNIT_MW;
+ double reactivePower = 0.0;
+ ElectricalUnit reactivePowerUnit = UNIT_MVAr;
+};
+
+class IndMotor : public Machines
+{
+ public:
+ IndMotor();
+ IndMotor(wxString name);
+ ~IndMotor();
+
+ virtual void DrawSymbol() const;
+ virtual bool GetContextMenu(wxMenu& menu);
+ virtual bool ShowForm(wxWindow* parent, Element* element);
+ virtual IndMotorElectricalData GetElectricalData() { return m_electricalData; }
+ virtual IndMotorElectricalData GetPUElectricalData(double systemPowerBase);
+ virtual void SetElectricalData(IndMotorElectricalData electricalData) { m_electricalData = electricalData; }
+ protected:
+ IndMotorElectricalData m_electricalData;
+};
+
+#endif // INDMOTOR_H