summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-09-09 18:54:49 -0700
committerJosh Blum2012-09-09 18:54:49 -0700
commit920d654bcf22024fe08c35474fdfcf8df7c72a4d (patch)
tree46db7e638d8e65b643c0e62ea3b62b73b2127b39 /lib/element.cpp
parent203950da07d91482a05bd364367d116e0916e198 (diff)
downloadsandhi-920d654bcf22024fe08c35474fdfcf8df7c72a4d.tar.gz
sandhi-920d654bcf22024fe08c35474fdfcf8df7c72a4d.tar.bz2
sandhi-920d654bcf22024fe08c35474fdfcf8df7c72a4d.zip
work on implementing forecast logic and failure cases
* still a bit to clean up * commented out case of consume zero and 0 reserve for input queues
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index 83b07b2..cdb856e 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -30,10 +30,11 @@ Element::Element(void)
Element::Element(const std::string &name)
{
this->reset(new ElementImpl());
- if (GENESIS) std::cout << "New element: " << name << std::endl;
(*this)->name = name;
(*this)->unique_id = ++unique_id_pool;
+ if (GENESIS) std::cout << "New element: " << name << std::endl;
+
//default io signature to something
IOSignature sig; sig.push_back(1);
this->set_input_signature(sig);