summaryrefslogtreecommitdiffstats
path: root/Project/ControlElementSolver.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-31 18:00:25 -0200
committerGitHub <noreply@github.com>2017-12-31 18:00:25 -0200
commit0c0280cfcf540f943fd2dbfdf7ac0304ea96a465 (patch)
tree51c89fc8155dcc447743dc89a1ab5ce36acc72cf /Project/ControlElementSolver.h
parentc8193665975686fb8a344bee3dc94914a3d3558a (diff)
parentdbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded (diff)
downloadPSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.tar.gz
PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.tar.xz
PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.zip
Merge pull request #43 from Thales1330/wip/math-expr-control-block
Wip math expr control block
Diffstat (limited to 'Project/ControlElementSolver.h')
-rw-r--r--Project/ControlElementSolver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Project/ControlElementSolver.h b/Project/ControlElementSolver.h
index 9bc54f7..f24f740 100644
--- a/Project/ControlElementSolver.h
+++ b/Project/ControlElementSolver.h
@@ -58,6 +58,8 @@ class ControlElementSolver
virtual double GetLastSolution() { return m_solutions[m_solutions.size() - 1]; }
virtual bool IsOK() const { return m_isOK; }
virtual wxString GetErrorMessage() { return m_failMessage; }
+ void SetSwitchStatus(bool value) { m_switchStatus = value; }
+ void SetCurrentTime(double value) { m_currentTime = value; }
void SetTerminalVoltage(double value) { m_terminalVoltage = value; }
void SetVelocity(double value) { m_velocity = value; }
void SetActivePower(double value) { m_activePower = value; }
@@ -86,6 +88,8 @@ class ControlElementSolver
IOControl* m_inputControl = NULL; /**< First input control to be solved */
IOControl* m_outputControl = NULL;
// Inputs
+ bool m_switchStatus = false;
+ double m_currentTime = 0.0;
double m_terminalVoltage = 0.0;
double m_velocity = 0.0;
double m_activePower = 0.0;
@@ -95,6 +99,13 @@ class ControlElementSolver
double m_initVelocity = 0.0;
double m_deltaVelocity = 0.0;
double m_deltaPe = 0.0;
+
+ /*
+ * m_inputToSolve[0] = Current line value;
+ * m_inputToSolve[1] = Current time;
+ * m_inputToSolve[2] = Switch status.
+ */
+ double* m_inputToSolve = NULL;
// Outputs
double m_fieldVoltage = 0.0;
double m_mecPower = 0.0;