Salome HOME
*** empty log message ***
[modules/superv.git] / src / Supervision / Port_Impl.cxx
index 3883bd47b6e9cf1192f543209fc48b487b3dbe10..419adb3655ce222efda59e541c888f33aed0962f 100644 (file)
@@ -175,6 +175,10 @@ bool Port_Impl::Input( const CORBA::Any * anAny ) {
                                                    *anAny ) ;
     }
   }
+  if ( !RetVal ) {
+    MESSAGE( "Port_Impl::Input returns false _InputPort " << _InputPort << " IsEditing "
+             << _DataFlowEditor->IsEditing() << " Executor " << _DataFlowEditor->Executor() ) ;
+  }
   endService( "Port_Impl::Input" );
   return RetVal ;
 }
@@ -238,9 +242,8 @@ SUPERV::Link_ptr Port_Impl::Link() {
     SUPERV::ListOfLinks_var Links = new SUPERV::ListOfLinks ;
 //    cout << "Port_Impl::Link " << _DataFlowNode->Name() << " "
 //         << _DataFlowPort->PortName() << endl ;
-    Links = _DataFlowEditor->ObjImpl()->Links(
-                                        _DataFlowNode->ComputingNode() ,
-                                        _DataFlowPort->PortName() ) ;
+    Links = _DataFlowEditor->ObjImpl()->Links( _DataFlowNode->ComputingNode() ,
+                                               _DataFlowPort->PortName() ) ;
     if ( Links->length() ) {
       iobject = Links[ 0 ] ;
     }
@@ -292,6 +295,8 @@ SUPERV::Link_ptr Port_Impl::Link() {
     }
   }
   if ( !begin ) {
+    MESSAGE( "Link " << iobject->OutPort()->Node()->Name() << "( " << iobject->OutPort()->Name() << " ) --> "
+             << iobject->InPort()->Node()->Name() << "( " << iobject->InPort()->Name() << " ) " ) ;
     endService( "Port_Impl::Link" ) ;
   }
   return SUPERV::Link::_duplicate( iobject ) ;
@@ -333,6 +338,12 @@ SUPERV::KindOfPort Port_Impl::Kind() {
   return RetVal ;
 }
 
+void Port_Impl::SetKind( SUPERV::KindOfPort aKindOfPort ) {
+//  beginService( "Port_Impl::SetKind" ) ;
+  _DataFlowPort->Kind( aKindOfPort ) ;
+//  endService( "Port_Impl::SetKind" ) ;
+}
+
 bool Port_Impl::IsParam() {
 //  beginService( "Port_Impl::IsParam" ) ;
   bool RetVal = _DataFlowPort->IsParam() ;
@@ -376,9 +387,21 @@ bool Port_Impl::IsEndSwitch() {
   return RetVal ;
 }
 
+bool Port_Impl::IsDataStream() {
+//  beginService( "Port_Impl::IsDataStream" ) ;
+  bool RetVal = _DataFlowPort->IsDataStream() ;
+//  endService( "Port_Impl::IsDataStream" ) ;
+  return RetVal ;
+}
+
 bool Port_Impl::HasInput() {
 //  beginService( "Port_Impl::" ) ;
-  bool RetVal = _DataFlowNode->HasInput( _DataFlowPort->PortName() ) ;
+  bool RetVal = false ;
+  if ( _DataFlowNode ) {
+    RetVal = _DataFlowNode->HasInput( _DataFlowPort->PortName() ) ;
+//    cout << "Port_Impl::HasInput " << RetVal << " NodeName " << _DataFlowPort->NodeName() << " PortName "
+//         << _DataFlowPort->PortName() << endl ;
+  }
 //  endService( "Port_Impl::" ) ;
   return RetVal ;
 }