summaryrefslogtreecommitdiffstats
path: root/Project/Element.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-10-14 17:45:25 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-10-14 17:45:25 -0300
commitd60de5e4c4774c5b840c5cab2cb629a5bbe9df42 (patch)
tree48e2bf736271e137af90ec1ffc1dcf7a21aeb2a7 /Project/Element.h
parent3596d19f6d804a9610545ce39f07e421d1dc716e (diff)
downloadPSP.git-d60de5e4c4774c5b840c5cab2cb629a5bbe9df42.tar.gz
PSP.git-d60de5e4c4774c5b840c5cab2cb629a5bbe9df42.tar.xz
PSP.git-d60de5e4c4774c5b840c5cab2cb629a5bbe9df42.zip
Switching implemented
Diffstat (limited to 'Project/Element.h')
-rw-r--r--Project/Element.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Project/Element.h b/Project/Element.h
index c1d887f..0806947 100644
--- a/Project/Element.h
+++ b/Project/Element.h
@@ -71,6 +71,18 @@ enum FaultData
FAULT_LINE_C
};
+enum SwitchingType
+{
+ SW_INSERT = 0,
+ SW_REMOVE
+};
+
+struct SwitchingData
+{
+ std::vector<SwitchingType> swType;
+ std::vector<double> swTime;
+};
+
class Element
{
public:
@@ -169,7 +181,10 @@ class Element
bool DoubleFromString(wxWindow* parent, wxString strValue, double& value, wxString errorMsg);
bool IntFromString(wxWindow* parent, wxString strValue, int& value, wxString errorMsg);
+ //Electrical only methods
virtual void SetNominalVoltage(double nominalVoltage, ElectricalUnit nominalVoltageUnit) {}
+ virtual void SetSwitchingData(SwitchingData data) { m_swData = data; }
+ virtual SwitchingData GetSwitchingData() { return m_swData; }
protected:
std::vector<Element*> m_parentList;
@@ -199,6 +214,8 @@ class Element
wxPoint2DDouble m_movePos;
bool m_online = true;
+
+ SwitchingData m_swData;
};
#endif // ELEMENT_H