X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/bc5d59217a24b25c1b913bec4a41dd026d02720c..e0eaffd44fc9733bc230a803c80d8d5efd0faca6:/AbstractBlock.cpp diff --git a/AbstractBlock.cpp b/AbstractBlock.cpp index 218ea61..de28272 100644 --- a/AbstractBlock.cpp +++ b/AbstractBlock.cpp @@ -76,8 +76,10 @@ bool AbstractBlock::isStimuliBlock() { * and has at least one data output. * By the way, blocks that have no data input/output * (like clkrstgen) are not sources ! + * A source may also be a block of special type source. */ bool AbstractBlock::isSourceBlock() { + if (specialType == Source) return true; if (getDataInputs().size() > 0) return false; if (getDataOutputs().size() == 0) return false; return true;