diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-06 11:37:00 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-06 11:37:00 -0300 |
commit | c5636d2031b20e673441e095d90ba94942698e7c (patch) | |
tree | 30b9f15cd5d91fe11a07960154d03afc2328bf8a /Project/IndMotor.h | |
parent | 0586ac0d34e4d8d5dd9845f2fdd212716b3004f9 (diff) | |
download | PSP.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.h | 8 |
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); |