diff options
Diffstat (limited to 'Project/ControlElementSolver.h')
-rw-r--r-- | Project/ControlElementSolver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Project/ControlElementSolver.h b/Project/ControlElementSolver.h index 9bc54f7..5717b08 100644 --- a/Project/ControlElementSolver.h +++ b/Project/ControlElementSolver.h @@ -58,6 +58,7 @@ 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 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 +87,7 @@ class ControlElementSolver IOControl* m_inputControl = NULL; /**< First input control to be solved */ IOControl* m_outputControl = NULL; // Inputs + double m_currentTime = 0.0; double m_terminalVoltage = 0.0; double m_velocity = 0.0; double m_activePower = 0.0; |