Salome HOME
The following methods and constants were removed as never being used:
[modules/superv.git] / src / GraphExecutor / DataFlowExecutor_DataFlow.lxx
1 //  SUPERV GraphExecutor : contains classes that permit execution of graphs and particularly the execution automaton
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : DataFlowExecutor_DataFlow.lxx
25 //  Module : SUPERV
26
27 #ifndef _DATAFLOWEXECUTOR_DATAFLOW_LXX
28 #define _DATAFLOWEXECUTOR_DATAFLOW_LXX
29
30 #include "DataFlowExecutor_OutNode.hxx"
31
32 inline bool GraphExecutor::DataFlow::LoadDataFlow( const GraphBase::SGraph * aDataFlow ) {
33   return GraphExecutor::OutNode::LoadDataFlow( aDataFlow ) ; 
34 }
35
36 //inline bool GraphExecutor::DataFlow::LoadXml( const char* myFileName ) {
37 //  return GraphExecutor::OutNode::LoadXml( myFileName ) ; 
38 //}
39
40 inline const SALOME_ModuleCatalog::Service * GraphExecutor::DataFlow::NodeService( const char * aNodeName ) {
41   if ( Graph()->GetGraphNode( aNodeName ) )
42     return Graph()->GetGraphNode( aNodeName )->GetService() ;
43   return NULL ;
44 }
45
46 inline bool GraphExecutor::DataFlow::AddInputData( const char* ToNodeName ,
47                                                    const char* ToParameterName ,
48                                                    const CORBA::Any aValue ) {
49   if ( !IsValid() )
50     return false ;
51   return Graph()->AddInputData( ToNodeName , ToParameterName , aValue ) ; 
52 } ;
53
54 inline bool GraphExecutor::DataFlow::ChangeInputData( const char* ToNodeName ,
55                                                       const char* ToParameterName ,
56                                                       const CORBA::Any aValue ) {
57   if ( !IsValid() )
58     return false ;
59   return Graph()->ChangeInputData( ToNodeName , ToParameterName , aValue ) ; 
60 } ;
61
62 inline bool GraphExecutor::DataFlow::IsValid() {
63   return GraphExecutor::OutNode::IsValid() ;
64 }
65
66 inline bool GraphExecutor::DataFlow::IsExecutable() {
67   return GraphExecutor::OutNode::IsExecutable() ;
68 }
69
70 inline bool GraphExecutor::DataFlow::Run( const bool AndSuspend ) {
71   return GraphExecutor::OutNode::Run( AndSuspend ) ;
72 }
73
74 inline long GraphExecutor::DataFlow::LastLevelDone() {
75   return GraphExecutor::OutNode::LastLevelDone() ;
76 }
77
78 inline long GraphExecutor::DataFlow::Threads() {
79   return GraphExecutor::OutNode::Threads() ;
80 }
81
82 inline bool GraphExecutor::DataFlow::Event( char ** aNodeName ,
83                                             SUPERV::GraphEvent & anEvent ,
84                                             SUPERV::GraphState & aState ,
85                                             bool WithWait ) {
86   return GraphExecutor::OutNode::Event( aNodeName , anEvent , aState , WithWait ) ;
87 }
88 inline bool GraphExecutor::DataFlow::EventW( char ** aNodeName ,
89                                              SUPERV::GraphEvent & anEvent ,
90                                              SUPERV::GraphState & aState ) {
91   return GraphExecutor::OutNode::EventW( aNodeName , anEvent , aState ) ;
92 }
93 inline long GraphExecutor::DataFlow::EventQSize() {
94   return GraphExecutor::OutNode::EventQSize() ;
95 }
96
97 inline void GraphExecutor::DataFlow::State(GraphExecutor::AutomatonState aState ) {
98   GraphExecutor::OutNode::State( aState ) ;
99 }
100
101 inline SUPERV::GraphState GraphExecutor::DataFlow::State() {
102   return GraphExecutor::OutNode::State() ;
103 }
104
105 inline SUPERV::GraphState GraphExecutor::DataFlow::State(
106                                const char * aNodeName ) {
107   return GraphExecutor::OutNode::State( aNodeName ) ;
108 }
109
110 inline SUPERV::GraphState GraphExecutor::DataFlow::State(
111                                const char * aNodeName ,
112                                const char * anOutServiceParameterName ) {
113   return GraphExecutor::OutNode::State( aNodeName ,
114                                         anOutServiceParameterName ) ;
115 }
116
117 inline long GraphExecutor::DataFlow::Thread() {
118   return GraphExecutor::OutNode::ThreadNo() ;
119 }
120 inline long GraphExecutor::DataFlow::Thread( const char * aNodeName ) {
121   return GraphExecutor::OutNode::Thread( aNodeName ) ;
122 }
123
124 inline GraphExecutor::AutomatonState GraphExecutor::DataFlow::AutomatonState() {
125   return GraphExecutor::OutNode::AutomatonState() ;
126 }
127
128 inline GraphExecutor::AutomatonState GraphExecutor::DataFlow::AutomatonState(
129                                const char * aNodeName ) {
130   return GraphExecutor::OutNode::AutomatonState( aNodeName ) ;
131 }
132
133 inline SUPERV::ControlState GraphExecutor::DataFlow::ControlState() {
134   return GraphExecutor::OutNode::ControlState() ;
135 }
136
137 inline SUPERV::ControlState GraphExecutor::DataFlow::ControlState(
138                                const char * aNodeName ) {
139   return GraphExecutor::OutNode::ControlState( aNodeName ) ;
140 }
141
142 inline void GraphExecutor::DataFlow::ControlClear() {
143   return GraphExecutor::OutNode::ControlClear() ;
144 }
145
146 inline void GraphExecutor::DataFlow::ControlClear(
147                                const char * aNodeName ) {
148   return GraphExecutor::OutNode::ControlClear( aNodeName ) ;
149 }
150
151 inline bool GraphExecutor::DataFlow::IsWaiting() {
152   return GraphExecutor::OutNode::IsWaiting() ;
153 }
154 inline bool GraphExecutor::DataFlow::IsReady() {
155   return GraphExecutor::OutNode::IsReady() ;
156 }
157 inline bool GraphExecutor::DataFlow::IsRunning() {
158   return GraphExecutor::OutNode::IsRunning() ;
159 }
160 inline bool GraphExecutor::DataFlow::IsDone() {
161   return GraphExecutor::OutNode::IsDone() ;
162 }
163 inline bool GraphExecutor::DataFlow::IsSuspended() {
164   return GraphExecutor::OutNode::IsSuspended() ;
165 }
166
167 inline bool GraphExecutor::DataFlow::IsWaiting(const char * aNodeName ) {
168   return GraphExecutor::OutNode::IsWaiting( aNodeName ) ;
169 }
170 inline bool GraphExecutor::DataFlow::IsReady(const char * aNodeName ) {
171   return GraphExecutor::OutNode::IsReady( aNodeName ) ;
172 }
173 inline bool GraphExecutor::DataFlow::IsRunning(const char * aNodeName ) {
174   return GraphExecutor::OutNode::IsRunning( aNodeName ) ;
175 }
176 inline bool GraphExecutor::DataFlow::IsDone(const char * aNodeName ) {
177   return GraphExecutor::OutNode::IsDone( aNodeName ) ;
178 }
179 inline bool GraphExecutor::DataFlow::IsSuspended(const char * aNodeName ) {
180   return GraphExecutor::OutNode::IsSuspended( aNodeName ) ;
181 }
182
183 inline bool GraphExecutor::DataFlow::IsDone(
184                                   const char * aNodeName ,
185                                   const char * anOutServiceParameterName ) {
186   return GraphExecutor::OutNode::IsDone( aNodeName ,
187                                          anOutServiceParameterName ) ;
188 }
189
190 inline bool GraphExecutor::DataFlow::ReadyWait() {
191   return GraphExecutor::OutNode::ReadyWait() ;
192 }
193 inline bool GraphExecutor::DataFlow::RunningWait() {
194   return GraphExecutor::OutNode::RunningWait() ;
195 }
196 inline bool GraphExecutor::DataFlow::DoneWait() {
197   return GraphExecutor::OutNode::DoneWait() ;
198 }
199 inline bool GraphExecutor::DataFlow::SuspendedWait() {
200   return GraphExecutor::OutNode::SuspendedWait() ;
201 }
202
203 inline bool GraphExecutor::DataFlow::ReadyWait(const char * aNodeName ) {
204   return GraphExecutor::OutNode::ReadyWait( aNodeName ) ;
205 }
206 inline bool GraphExecutor::DataFlow::RunningWait(const char * aNodeName ) {
207   return GraphExecutor::OutNode::RunningWait( aNodeName ) ;
208 }
209 inline bool GraphExecutor::DataFlow::DoneWait(const char * aNodeName ) {
210   return GraphExecutor::OutNode::DoneWait( aNodeName ) ;
211 }
212 inline bool GraphExecutor::DataFlow::SuspendedWait(const char * aNodeName ) {
213   return GraphExecutor::OutNode::SuspendedWait( aNodeName ) ;
214 }
215
216 inline const CORBA::Any *GraphExecutor::DataFlow::GetInData(
217                                    const char * ToNodeName ,
218                                    const char * ToParameterName ) {
219   return GraphExecutor::OutNode::GetInData( ToNodeName ,
220                                             ToParameterName ) ;
221 }
222 inline const CORBA::Any *GraphExecutor::DataFlow::GetOutData(
223                                    const char * FromNodeName ,
224                                    const char * FromParameterName ) {
225   return GraphExecutor::OutNode::GetOutData( FromNodeName ,
226                                              FromParameterName ) ;
227 }
228 #endif
229
230
231