summaryrefslogtreecommitdiffstats
path: root/Project/ControlElement.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-08 21:43:17 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-08 21:43:17 -0300
commit9fb33a91aa22fbce6d0b74529e07af9f7781b916 (patch)
tree2cd9f042977cf598949e7b29745886abfe1bf342 /Project/ControlElement.h
parent74d795cb074b6ae9aa93bcfacee8995d7e6d5945 (diff)
downloadPSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.tar.gz
PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.tar.xz
PSP.git-9fb33a91aa22fbce6d0b74529e07af9f7781b916.zip
Secondary branch, TF and limiter solution
much work, such results
Diffstat (limited to 'Project/ControlElement.h')
-rw-r--r--Project/ControlElement.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Project/ControlElement.h b/Project/ControlElement.h
index e2b9a29..3744c6f 100644
--- a/Project/ControlElement.h
+++ b/Project/ControlElement.h
@@ -65,8 +65,13 @@ class ControlElement : public Element
virtual bool IsSolved() const { return m_solved; }
virtual void SetSolved(bool solved = true) { m_solved = solved; }
- virtual bool Solve(double input) { return true; }
+ virtual bool Solve(double input)
+ {
+ m_output = input * 2.0;
+ return true;
+ }
virtual double GetOutput() const { return m_output; }
+ virtual void SetOutput(double output) { m_output = output; }
protected:
std::vector<Node*> m_nodeList;
bool m_solved = false;