else {
reference = referenceMd5;
}
-
- GroupBlock* parentGroupBlock = AB_TO_GRP(((GroupItem *)parentItem())->getRefBlock());
- FunctionalBlock* functionalBlock = params->getGraph()->createFunctionalBlock(parentGroupBlock, reference);
- /* NB: addFunctionalBlock creates all interfaces from the reference, which is annoying when
+
+ FunctionalBlock* functionalBlock = params->getGraph()->createSourceBlock(reference);
+ /* NB: createSourceBlock creates all interfaces from the reference, which is annoying when
reading bif_iface tags. Thus interface are all removed.
*/
functionalBlock->setName(name);
setId(id);
- QDomNodeList blockParamNodes = funcElement.elementsByTagName("bif_parameter");
+ QDomNodeList blockParamNodes = funcElement.elementsByTagName("source_parameter");
// setting parameters value
for(int i=0; i<blockParamNodes.length(); i++){
QDomElement currentBlockParamNode = blockParamNodes.at(i).toElement();
// recreate all (non-control) interfaces because of some may have a multiplicity>1 with several examplars
functionalBlock->removeAllInterfaces();
- QDomNodeList interfaceNodes = funcElement.elementsByTagName("bif_iface");
+ QDomNodeList interfaceNodes = funcElement.elementsByTagName("source_iface");
// setting interfaces (user name, and for multiplicity>1 may be create some new ones)
for(int i=0; i<interfaceNodes.length(); i++) {