summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-06 11:37:00 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-06 11:37:00 -0300
commitc5636d2031b20e673441e095d90ba94942698e7c (patch)
tree30b9f15cd5d91fe11a07960154d03afc2328bf8a /Project/IndMotor.h
parent0586ac0d34e4d8d5dd9845f2fdd212716b3004f9 (diff)
downloadPSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.gz
PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.xz
PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.zip
Some class enum implementation
Just for better code design: https://docs.microsoft.com/pt-br/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/enumeration-classes-over-enum-types
Diffstat (limited to 'Project/IndMotor.h')
-rw-r--r--Project/IndMotor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Project/IndMotor.h b/Project/IndMotor.h
index 7e20a2f..f79dcb8 100644
--- a/Project/IndMotor.h
+++ b/Project/IndMotor.h
@@ -25,11 +25,11 @@ class IndMotorForm;
struct IndMotorElectricalData {
wxString name;
double ratedPower = 100.0;
- ElectricalUnit ratedPowerUnit = UNIT_MVA;
+ ElectricalUnit ratedPowerUnit = ElectricalUnit::UNIT_MVA;
double activePower = 100.0;
- ElectricalUnit activePowerUnit = UNIT_MW;
+ ElectricalUnit activePowerUnit = ElectricalUnit::UNIT_MW;
double reactivePower = 0.0;
- ElectricalUnit reactivePowerUnit = UNIT_MVAr;
+ ElectricalUnit reactivePowerUnit = ElectricalUnit::UNIT_Mvar;
bool useMachinePowerAsBase = true;
bool calcQInPowerFlow = true;
@@ -134,7 +134,7 @@ class IndMotor : public Machines
virtual void InitPowerFlowMotor(double systemPowerBase, int busNumber);
virtual bool CalculateReactivePower(double voltage);
- virtual bool GetPlotData(ElementPlotData& plotData, PlotStudy study = STABILITY);
+ virtual bool GetPlotData(ElementPlotData& plotData, PlotStudy study = PlotStudy::STABILITY);
virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
virtual bool OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Element*> parentList);