diff options
Diffstat (limited to 'Node.cpp')
| -rw-r--r-- | Node.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
| @@ -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();  } |