Salome HOME
DCQ:prepare 2.0.0
[modules/superv.git] / src / GraphExecutor / DataFlowExecutor_DataFlow.lxx
index 2cf8cf4c03ab43f0b2550e5dc881c6789c4d6039..8e9390f0831ae8e90a38cdebc2384ca11ce54bfd 100644 (file)
 
 #include "DataFlowExecutor_OutNode.hxx"
 
-inline bool GraphExecutor::DataFlow::LoadDataFlow(
-       const GraphBase::SGraph &aDataFlow ) {
+inline bool GraphExecutor::DataFlow::LoadDataFlow( const GraphBase::SGraph * aDataFlow ) {
   return GraphExecutor::OutNode::LoadDataFlow( aDataFlow ) ; 
 }
 
-inline bool GraphExecutor::DataFlow::LoadXml( const char* myFileName ) {
-  return GraphExecutor::OutNode::LoadXml( myFileName ) ; 
-}
+//inline bool GraphExecutor::DataFlow::LoadXml( const char* myFileName ) {
+//  return GraphExecutor::OutNode::LoadXml( myFileName ) ; 
+//}
 
-inline const SALOME_ModuleCatalog::Service * GraphExecutor::DataFlow::NodeService(
-                                             const char * aNodeName ) {
+inline const SALOME_ModuleCatalog::Service * GraphExecutor::DataFlow::NodeService( const char * aNodeName ) {
   if ( Graph()->GetGraphNode( aNodeName ) )
     return Graph()->GetGraphNode( aNodeName )->GetService() ;
   return NULL ;
 }
 
-inline bool GraphExecutor::DataFlow::ChangeInputData( const char* ToNodeName ,
-                                                 const char* ToParameterName ,
-                                                 const CORBA::Any aValue ) {
+inline bool GraphExecutor::DataFlow::AddInputData( const char* ToNodeName ,
+                                                   const char* ToParameterName ,
+                                                   const CORBA::Any aValue ) {
   if ( !IsValid() )
     return false ;
-  return Graph()->ChangeInputData( ToNodeName , ToParameterName , aValue ) ; 
+  return Graph()->AddInputData( ToNodeName , ToParameterName , aValue ) ; 
 } ;
 
-inline bool GraphExecutor::DataFlow::AddInputSharedData(const char* ToNodeName1 ,
-                                                      const char* ToParameterName1 ,
-                                                      const char* ToNodeName2 ,
-                                                      const char* ToParameterName2 ) {
+inline bool GraphExecutor::DataFlow::ChangeInputData( const char* ToNodeName ,
+                                                      const char* ToParameterName ,
+                                                      const CORBA::Any aValue ) {
   if ( !IsValid() )
     return false ;
-  return GraphExecutor::OutNode::AddInputData( ToNodeName1 ,
-                                               ToParameterName1 ,
-                                               ToNodeName2 ,
-                                               ToParameterName2 ) ;
-//                                         aKindOfPortValue ) ; 
+  return Graph()->ChangeInputData( ToNodeName , ToParameterName , aValue ) ; 
 } ;
 
 inline bool GraphExecutor::DataFlow::IsValid() {
@@ -106,6 +99,10 @@ inline long GraphExecutor::DataFlow::EventQSize() {
   return GraphExecutor::OutNode::EventQSize() ;
 }
 
+inline void GraphExecutor::DataFlow::State(GraphExecutor::AutomatonState aState ) {
+  GraphExecutor::OutNode::State( aState ) ;
+}
+
 inline SUPERV::GraphState GraphExecutor::DataFlow::State() {
   return GraphExecutor::OutNode::State() ;
 }
@@ -129,11 +126,11 @@ inline long GraphExecutor::DataFlow::Thread( const char * aNodeName ) {
   return GraphExecutor::OutNode::Thread( aNodeName ) ;
 }
 
-inline SUPERV::AutomatonState GraphExecutor::DataFlow::AutomatonState() {
+inline GraphExecutor::AutomatonState GraphExecutor::DataFlow::AutomatonState() {
   return GraphExecutor::OutNode::AutomatonState() ;
 }
 
-inline SUPERV::AutomatonState GraphExecutor::DataFlow::AutomatonState(
+inline GraphExecutor::AutomatonState GraphExecutor::DataFlow::AutomatonState(
                                const char * aNodeName ) {
   return GraphExecutor::OutNode::AutomatonState( aNodeName ) ;
 }