aboutsummaryrefslogtreecommitdiff
path: root/NodeOutput.cpp
blob: a02ba1fb89b20a9209cd157211fae5cf89b7b9bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "NodeOutput.h"
#include "Exception.h"

#include "prut.h"

NodeOutput NodeOutput::instance(NodeOutput::type);

NodeOutput::NodeOutput(const char * type) : Node(type) { }

void NodeOutput::sim() {
   if (this->inputs.size() == 0)
      throw CircuitException("No inputs on probe");

	 prutprintf("level: %u", this->inputs[0]->getLevel());
}

NodeOutput::NodeOutput(const NodeOutput * prototype) : Node() { }

NodeOutput * NodeOutput::clone() const {
	return new NodeOutput(this);
}