diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-15 21:50:48 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-05-15 21:50:48 -0300 |
commit | c6c3ff70bfceac839af471c11fc8aa04060517b0 (patch) | |
tree | e87dec2ca89d48098cf2cca4ca6df198c7a273d5 /Project/ControlElementSolver.h | |
parent | 17d1dd82ec065eff08546ef1fd2a188ce77471b2 (diff) | |
download | PSP.git-c6c3ff70bfceac839af471c11fc8aa04060517b0.tar.gz PSP.git-c6c3ff70bfceac839af471c11fc8aa04060517b0.tar.xz PSP.git-c6c3ff70bfceac839af471c11fc8aa04060517b0.zip |
Control test and sync generator control implemented
Text buggy when opens
Diffstat (limited to 'Project/ControlElementSolver.h')
-rw-r--r-- | Project/ControlElementSolver.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Project/ControlElementSolver.h b/Project/ControlElementSolver.h index 6d0ad3f..9bc644c 100644 --- a/Project/ControlElementSolver.h +++ b/Project/ControlElementSolver.h @@ -1,7 +1,7 @@ #ifndef CONTROLELEMENTSOLVER_H #define CONTROLELEMENTSOLVER_H -#include <stddef.h> // NULL definition +#include <wx/window.h> #include <vector> class ControlElementContainer; @@ -24,8 +24,14 @@ class ControlElementSolver ControlElementSolver(ControlEditor* controlEditor, double timeStep = 1e-3, double integrationError = 1e-3, - bool startAllZero = false, + bool startAllZero = true, double input = 0.0); + ControlElementSolver(ControlElementContainer* ctrlContainer, + double timeStep = 1e-3, + double integrationError = 1e-3, + bool startAllZero = true, + double input = 0.0, + wxWindow* parent = NULL); ~ControlElementSolver() {} virtual bool InitializeValues(double input, bool startAllZero); virtual void SolveNextStep(double input); @@ -33,6 +39,7 @@ class ControlElementSolver virtual double GetLastSolution() { return m_solutions[m_solutions.size() - 1]; } virtual bool IsOK() const { return m_isOK; } protected: + void Initialize(wxWindow* parent, double timeStep, double integrationError, bool startAllZero, double input); void FillAllConnectedChildren(ConnectionLine* parent); ConnectionLine* SolveNextElement(ConnectionLine* currentLine); |