From bc5a3e8923cb8efedbbd5b88e212eb0e9009cf87 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 5 Oct 2017 20:02:59 -0300 Subject: Add copyright on files and documentation update --- Project/Transformer.h | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'Project/Transformer.h') 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 + * + * 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 . + */ + #ifndef TRANSFORMER_H #define TRANSFORMER_H @@ -37,8 +54,8 @@ struct TransformerElectricalData { bool useTransformerPower = false; // Power flow (p.u.) - std::complex current[2] = { std::complex(0.0, 0.0), std::complex(0.0, 0.0) }; - std::complex powerFlow[2] = { std::complex(0.0, 0.0), std::complex(0.0, 0.0) }; + std::complex current[2] = {std::complex(0.0, 0.0), std::complex(0.0, 0.0)}; + std::complex powerFlow[2] = {std::complex(0.0, 0.0), std::complex(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 nominalVoltage, std::vector nominalVoltageUnit); -protected: + protected: void UpdatePowerFlowArrowsPosition(); TransformerElectricalData m_electricalData; }; -#endif // TRANSFORMER_H +#endif // TRANSFORMER_H -- cgit