summaryrefslogtreecommitdiffstats
path: root/Project/Fault.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-01-10 16:10:43 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2017-01-10 16:10:43 -0200
commit568d04c7f692e64bc29b2ca195c2de6af7fdd43a (patch)
tree5b458c70a0cb301173d1b808374a0f367813dab5 /Project/Fault.h
parent7928eca406f5000aabf202fd393908b097f27449 (diff)
downloadPSP.git-568d04c7f692e64bc29b2ca195c2de6af7fdd43a.tar.gz
PSP.git-568d04c7f692e64bc29b2ca195c2de6af7fdd43a.tar.xz
PSP.git-568d04c7f692e64bc29b2ca195c2de6af7fdd43a.zip
Elements data update
Elements data update after fault calculation implemented.
Diffstat (limited to 'Project/Fault.h')
-rw-r--r--Project/Fault.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Project/Fault.h b/Project/Fault.h
index dfe0e75..c3caef7 100644
--- a/Project/Fault.h
+++ b/Project/Fault.h
@@ -2,16 +2,49 @@
#define FAULT_H
#include "ElectricCalculation.h"
+/**
+ * @class Fault
+ * @author Thales Lima Oliveira
+ * @date 10/01/2017
+ * @file Fault.h
+ * @brief Calculate the fault of the system and update the elements data.
+ */
class Fault : public ElectricCalculation
{
public:
+ /**
+ * @brief Contructor.
+ * @param elementList List of elements in workspace
+ */
Fault(std::vector<Element*> elementList);
+
+ /**
+ * @brief Default contructor. Use GetElementsFromList(std::vector<Element*> elementList).
+ */
Fault();
+
+ /**
+ * @brief Destructor.
+ */
~Fault();
+ /**
+ * @brief Calculate the fault of the system. Return true if was possible the calculation.
+ * @param systemPowerBase System base of power.
+ */
virtual bool RunFaultCalculation(double systemPowerBase);
+
+ /**
+ * @brief Update the data of the elements.
+ * @param systemPowerBase System base of power.
+ */
virtual void UpdateElementsFault(double systemPowerBase);
+
+ /**
+ * @brief Get the error message generated in RunFaultCalculation(double systemPowerBase).
+ * @return Error message.
+ */
virtual wxString GetErrorMessage() { return m_errorMsg; }
protected: