summaryrefslogtreecommitdiffstats
path: root/Project/Transformer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Transformer.h')
-rw-r--r--Project/Transformer.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/Project/Transformer.h b/Project/Transformer.h
index 689b8f6..6c5efea 100644
--- a/Project/Transformer.h
+++ b/Project/Transformer.h
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
#ifndef TRANSFORMER_H
#define TRANSFORMER_H
@@ -37,8 +54,8 @@ struct TransformerElectricalData {
bool useTransformerPower = false;
// Power flow (p.u.)
- std::complex<double> current[2] = { std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0) };
- std::complex<double> powerFlow[2] = { std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0) };
+ std::complex<double> current[2] = {std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0)};
+ std::complex<double> powerFlow[2] = {std::complex<double>(0.0, 0.0), std::complex<double>(0.0, 0.0)};
// Fault
double zeroResistance = 0.0;
@@ -53,7 +70,7 @@ struct TransformerElectricalData {
class Transformer : public Branch
{
-public:
+ public:
Transformer();
Transformer(wxString name);
virtual ~Transformer();
@@ -78,9 +95,9 @@ public:
virtual void SetElectricaData(TransformerElectricalData electricalData) { m_electricalData = electricalData; }
virtual void SetNominalVoltage(std::vector<double> nominalVoltage, std::vector<ElectricalUnit> nominalVoltageUnit);
-protected:
+ protected:
void UpdatePowerFlowArrowsPosition();
TransformerElectricalData m_electricalData;
};
-#endif // TRANSFORMER_H
+#endif // TRANSFORMER_H