Salome HOME
*** empty log message ***
[modules/superv.git] / src / Supervision / Graph_Impl.hxx
index 54e06b8243fa7029ac5191f99bbb4f98f2b9e8c4..d7b8d9a1387ae053f9eed11925617d639c4b3b22 100644 (file)
@@ -1,16 +1,35 @@
-//=============================================================================
-// File      : Graph_Impl.hxx
-// Created   : Nov 2001
-// Author    : Jean Rahuel
-// Project   : SALOME
-// Copyright : CEA 2001
-// $Header: 
-//=============================================================================
+//  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : Graph_Impl.hxx
+//  Author : Jean Rahuel
+//  Module : SUPERV
+//  $Header: 
 
 #ifndef _GRAPH_IMPL_HXX_
 #define _GRAPH_IMPL_HXX_
 
-#include <iostream.h>
+//#include <iostream.h>
 
 #include "CORBA.h"
 
@@ -40,9 +59,9 @@ class Graph_Impl :public INode_Impl ,
     SALOME_NamingService *     _NamingService ;
     char * _DebugFileName ;
 
+    pthread_mutex_t            _MutexExecutorWait ;
     GraphExecutor::DataFlow *  _DataFlowExecutor ;
 
-    int                        _ExecNumber ;
     SUPERV::Graph_var          myServant; // mpv 23.12.2002: store servant of graph to get constant IOR
 
   public:
@@ -62,7 +81,7 @@ class Graph_Impl :public INode_Impl ,
 
     virtual void ReadOnly() ;
 
-    virtual SUPERV::INode_ptr GetNode() ;
+    virtual SUPERV::INode_ptr Node() ;
 
 //    virtual char * DataFlowInfo() ;
 //    virtual char * DataNodeInfo() ;
@@ -107,7 +126,7 @@ class Graph_Impl :public INode_Impl ,
                           const SUPERV::ListOfStrings & PythonFunction ,
                           SUPERV::INode_out anEndOfSwitch ) ;
 
-    virtual SUPERV::CNode_ptr GetNode( const char * NodeName );
+    virtual SUPERV::CNode_ptr Node( const char * NodeName );
 
     virtual SUPERV::Link_ptr Link( SUPERV::Port_ptr OutPort ,
                                    SUPERV::Port_ptr InPort ) ;
@@ -115,6 +134,7 @@ class Graph_Impl :public INode_Impl ,
     virtual SUPERV::ListOfNodes_var Graph_Impl::SetNode( SUPERV::ListOfNodes_var RetVal ,
                                       GraphBase::ComputingNode * aNode ) ;
     virtual SUPERV::ListOfNodes * Nodes() ;
+    virtual void SetNodeObjRef( GraphEditor::InNode * anInNode ) ;
     virtual SUPERV::ListOfLinks * GLinks() ;
     virtual SUPERV::ListOfLinks * Links( GraphBase::ComputingNode * aNode ,
                                          const char * anInputParam ) ;
@@ -153,6 +173,7 @@ class Graph_Impl :public INode_Impl ,
     virtual bool EventW( SUPERV::CNode_out aNode ,
                          SUPERV::GraphEvent & anEvent ,
                          SUPERV::GraphState & aState ) ;
+    virtual long EventQSize() ;
 
     virtual bool Merge(const SUPERV::Graph_ptr aGraph ) ;