]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Cyclic dependency
authorrahuel <rahuel@opencascade.com>
Tue, 11 May 2004 13:00:40 +0000 (13:00 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 11 May 2004 13:00:40 +0000 (13:00 +0000)
src/GraphExecutor/DataFlowExecutor_InNodeThreads.cxx
src/GraphExecutor/DataFlowExecutor_OutNode.cxx
src/GraphExecutor/DataFlowExecutor_OutNode.hxx

index 0b02ac8042fe842381cf7543ccd2b360ff3f91c1..bb0e6b7ba39d3dba02c3466b5f627878902765ee 100644 (file)
@@ -39,17 +39,12 @@ using namespace std;
 
 #include <SALOMEconfig.h>
 #include CORBA_CLIENT_HEADER(SALOME_Component)
-//#include "SALOME_NamingService.hxx"
 #include "SALOME_LifeCycleCORBA.hxx"
 
-//#include "DataFlowExecutor_InNode.hxx"
+//#include "StreamGraph_Impl.hxx"
 
 #include "DataFlowExecutor_OutNode.hxx"
 
-#include "Graph_Impl.hxx"
-
-//static char *containerName = "FactoryServer" ;
-
 int GraphExecutor::InNode::SendEvent( const GraphExecutor::NodeEvent anEvent ) {  
 
   _CurrentEvent = (GraphExecutor::NodeEvent ) anEvent ;
@@ -1078,7 +1073,7 @@ int GraphExecutor::InNode::DataReady_ExecuteAction() {
     astr << "Graph " << _OutNode->Graph()->Name() << " Node " << Name()
          << " : load of component " << ComponentName() << " in container "
          << Computer() ;
-    _OutNode->Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
+//    _OutNode->Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
     Err = !_OutNode->Graph()->StartComponent( ThreadNo() , Computer() ,
                                               my_strdup( ComponentName() ) ,
                                               myContainer , myObjComponent ) ;
@@ -1108,7 +1103,7 @@ int GraphExecutor::InNode::DataReady_ExecuteAction() {
       if ( !Err ) {
         ostringstream astr ;
         astr << "Graph " << _OutNode->Graph()->Name() << " Run of Node " << Name() ;
-        _OutNode->Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
+//        _OutNode->Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
         cdebug << ThreadNo() << " Run( '" << ServiceName() << "'" ;
         for ( i = 0 ; i < (int ) ServiceInParameter().length() ; i++ ) {
           cdebug << " , " << InParametersList[ i ].Name << "[kind"
@@ -1399,7 +1394,7 @@ int GraphExecutor::InNode::DataReady_ExecuteAction() {
   ostringstream astr ;
   astr << "Graph " << _OutNode->Graph()->Name() << " Node " << Name() << " is done : "
        << Automaton()->StateName( State() ) ;
-  _OutNode->Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
+//  _OutNode->Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
   if ( Err ) {
     if ( ControlState() == SUPERV::ToKillState ||
          ControlState() == SUPERV::ToKillDoneState ||
index 8f0ddefa29fa03191e77838419fa3bcab2b2e40f..ea2b3f07f152401bd6b107d1ce22b48e87627c4d 100644 (file)
@@ -30,8 +30,6 @@ using namespace std;
 
 #include "DataFlowExecutor_OutNode.hxx"
 
-#include "Graph_Impl.hxx"
-
 // Implementation de la classe GraphEditor::GraphControl
 
 extern GraphExecutor::FiniteStateMachine * theAutomaton ;
@@ -582,9 +580,9 @@ bool GraphExecutor::OutNode::Run( const bool AndSuspend ) {
           State( SUPERV::ExecutingState ) ;
       };
     }
-    ostringstream astr ;
-    astr << "Graph " << Graph()->Name() << " is running" ;
-    Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
+//    ostringstream astr ;
+//    astr << "Graph " << Graph()->Name() << " is running" ;
+//    Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
     RetVal = true ;
   }
   else {
@@ -693,10 +691,10 @@ void GraphExecutor::OutNode::CheckAllDone() {
     cdebug << Graph()->Name() << " IS DONE : " <<  theAutomaton->StateName( AutomatonState() ) << " EventQSize "
              << EventQSize() << endl  ;
     cdebug << "================================================================================" << endl ;
-    ostringstream astr ;
-    astr << "Graph " << Graph()->Name() << " is done : "
-         << theAutomaton->StateName( AutomatonState() ) ;
-    Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
+//    ostringstream astr ;
+//    astr << "Graph " << Graph()->Name() << " is done : "
+//         << theAutomaton->StateName( AutomatonState() ) ;
+//    Graph()->ObjImpl()->sendMessage( NOTIF_STEP, astr.str().c_str() ) ;
     //cout << Graph()->Name() << " IS DONE : " <<  theAutomaton->StateName( AutomatonState() ) << " EventQSize "
     //     << EventQSize() << endl  ;
   }
index 16fd6f0717eefbd38e929de85af0d35151fe400c..2676c74b978d6f50e2cd6174163c7bef85cec6a9 100644 (file)
 
 #include "SALOME_Component_i.hxx"
 
-#include "DataFlowBase_StreamGraph.hxx"
-
 #include "DataFlowExecutor_InNode.hxx"
 
+#include "DataFlowBase_StreamGraph.hxx"
+
 namespace GraphExecutor {
 
 //  class OutNode : public GraphBase::Graph {