]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/GraphBase/DataFlowBase_DataNode.cxx
Salome HOME
*** empty log message ***
[modules/superv.git] / src / GraphBase / DataFlowBase_DataNode.cxx
index 96cf474f10918cf4c31245fee41829988ee917eb..8c4eecc4517861f0d833e787410b85e60513c4e7 100644 (file)
@@ -39,7 +39,8 @@ GraphBase::DataNode::DataNode( CORBA::ORB_ptr ORB ,
                                SALOME_NamingService* ptrNamingService ,
                                const char *DataFlowName ) :
            InLineNode( ORB , ptrNamingService , DataFlowName ) {
-  MESSAGE( "GraphBase::DataNode::DataNode" );
+//  MESSAGE( "GraphBase::DataNode::DataNode" );
+  cdebug << "GraphBase::DataNode::DataNode" << endl ;
   _Created = false ;
 }
 
@@ -66,11 +67,10 @@ GraphBase::DataNode::~DataNode() {
 //  MESSAGE( "GraphBase::DataNode::~DataNode" );
 }
 
-void GraphBase::DataNode::DataService(
-                       CORBA::ORB_ptr ORB ,
-                       SALOME_ModuleCatalog::Service aService ,
-                       int * Graph_prof_debug ,
-                       ofstream * Graph_fdebug ) {
+void GraphBase::DataNode::DataService( CORBA::ORB_ptr ORB ,
+                                       SALOME_ModuleCatalog::Service aService ,
+                                       int * Graph_prof_debug ,
+                                       ofstream * Graph_fdebug ) {
   cdebug << "GraphBase::DataNode::DataService : DataFlowPortsOfNode of "
          << aService.ServiceName << endl ;
   DefPortsOfNode( ORB , aService , NamePtr() , Kind() ,
@@ -85,8 +85,7 @@ void GraphBase::DataNode::DataService(
   _DataFlowDataPorts = new PortsOfNode() ;
   cdebug << "GraphBase::DataNode::DataService : Mirrored DataFlowPortsOfNode of "
          << aReversedService.ServiceName << endl ;
-  _DataFlowDataPorts->DefPortsOfNode( ORB , aReversedService , NamePtr() ,
-                                      Kind() ,
+  _DataFlowDataPorts->DefPortsOfNode( ORB , aReversedService , NamePtr() , Kind() ,
                                       Graph_prof_debug , Graph_fdebug ) ;
   _Created = true ;
 }
@@ -98,13 +97,16 @@ int GraphBase::DataNode::CheckDataServerNodes() const {
   int i , ierr = 0 ;
 
   for ( i = 0 ; i < _DataFlowDataPorts->GetNodeOutPortsSize() ; i++ ) {
-    if ( !_DataFlowDataPorts->GetNodeOutPort(i)->IsDataConnected() ) {
-      cdebug << "InPort " << _DataFlowDataPorts->GetNodeOutPort(i)->PortName()
+// Not a BUG : Reversed Service of the graph 
+    const GraphBase::OutPort * anOutPort = _DataFlowDataPorts->GetNodeOutPort(i) ;
+//    if ( !anOutPort->IsGate() && !anOutPort->IsDataStream() && !anOutPort->IsDataConnected() ) {
+    if ( !anOutPort->IsGate() && !anOutPort->IsDataConnected() ) {
+      cdebug << "InPort " << anOutPort->PortName() << " " << anOutPort->PortType()
              << " of DataFlow " << Name() << " has NO Data." << endl ;
       ierr++ ;
     }
     else {
-      cdebug << "InPort " << _DataFlowDataPorts->GetNodeOutPort(i)->PortName()
+      cdebug << "InPort " << anOutPort->PortName() << " " << anOutPort->PortType()
              << " of DataFlow " << Name()  << " has Data : "
 //           << _DataFlowDataPorts->GetNodeOutPort(i)->Value() << " kind "
 //           << _DataFlowDataPorts->GetNodeOutPort(i)->Kind()