aboutsummaryrefslogtreecommitdiff
path: root/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Node.cpp')
-rw-r--r--Node.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Node.cpp b/Node.cpp
index a0fc27b..d3564da 100644
--- a/Node.cpp
+++ b/Node.cpp
@@ -1,22 +1,23 @@
+#include <iostream>
+
#include "Node.h"
#include "NodeFactory.h"
-
-#include <iostream>
+#include "Net.h"
Node::Node(const char * type) {
NodeFactory::assign(type, this);
}
-void Node::addInput(Net* net) {
+void Node::addInput(Net * net) {
net->attach(this);
}
-void Node::setOutput(Net* net){
+void Node::setOutput(Net * net){
this->output = net;
}
void Node::update(){
std::cout << "updated" << std::endl;
- this->compare();
+ this->sim();
}