Salome HOME
PAL8624
[modules/superv.git] / src / GraphExecutor / DataFlowExecutor_OutNode.hxx
index 5716375e421469aed9fd977a605f89d34b6f1d16..4746eaf08c196e28efbb33d3b863ed390ee5288b 100644 (file)
@@ -53,6 +53,7 @@ namespace GraphExecutor {
       GraphExecutor::AutomatonState  _State ;
       SUPERV::ControlState    _ControlState ;
       bool                    _Done ;
+      bool                    _NodeAborted ;
 
       // asv : 20.01.05 : changes involved with switching to old (HEAD) KERNEL    
       //Engines_Container_i            * _SuperVisionContainer ;
@@ -115,6 +116,8 @@ namespace GraphExecutor {
       GraphBase::Graph * Graph() const {
                          return _Graph ; } ;
 
+      char * Name() { return Graph()->Name() ; } ;
+
       bool LoadDataFlow( const GraphBase::SGraph * aDataFlow ) ;
 //      bool LoadXml( const char* myFileName ) ;
       bool LoadInfo( const GraphBase::SNode &aDataFlowInfo ) ;
@@ -224,6 +227,13 @@ namespace GraphExecutor {
       bool Kill() ;
       bool Stop() ;
 
+      void NodeAborted( const char * aNodeName ) {
+           string aMsg = string( "The node " ) + string( aNodeName ) + " was aborted." ;
+           Graph()->SetMessages( aMsg.c_str() ) ;
+           _NodeAborted = true ; } ;
+      bool IsNodeAborted() {
+           return _NodeAborted ; } ;
+
       bool IsWaiting() ;
       bool IsReady() ;
       bool IsRunning() ;