]> AND Private Git Repository - blast.git/blobdiff - StimuliItem.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
finished testbench generation
[blast.git] / StimuliItem.cpp
index dff524702658977813d4adee702e6a0997b6fb29..861bfc7de238d367f5883daee883f12e65840920 100644 (file)
@@ -614,7 +614,7 @@ void StimuliItem::load(QDomElement funcElement) throw(Exception) {
     reference = referenceMd5;
   }
     
-  FunctionalBlock* functionalBlock = params->getGraph()->createStimuliBlock(reference);
+  FunctionalBlock* functionalBlock = params->getGraph()->createStimuliBlock(reference, false);
   /* NB: createSourceBlock creates all interfaces from the reference, which is annoying when
     reading bif_iface tags. Thus interface are all removed.
   */
@@ -644,7 +644,7 @@ void StimuliItem::load(QDomElement funcElement) throw(Exception) {
   }  
 
   // recreate all (non-control) interfaces because of some may have a multiplicity>1 with several examplars
-  functionalBlock->removeAllInterfaces();
+  //functionalBlock->removeAllInterfaces();
   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++) {
@@ -740,7 +740,7 @@ void StimuliItem::save(QXmlStreamWriter &writer) {
     
     writer.writeAttribute("id",QString::number(inter->getId()));
     writer.writeAttribute("name",inter->getName());
-    writer.writeAttribute("ref_name",inter->refInter->getName());
+    writer.writeAttribute("ref_name",inter->getReferenceName());
     writer.writeAttribute("orientation",inter->getStrOrientation());
     writer.writeAttribute("position",QString::number(inter->getPositionRatio()));