]> SALOME platform Git repositories - modules/superv.git/blob - src/GraphExecutor/DataFlowExecutor_DataFlow.lxx
Salome HOME
77dfb0398447d51b31b90f364d71cf0589935810
[modules/superv.git] / src / GraphExecutor / DataFlowExecutor_DataFlow.lxx
1 #ifndef _DATAFLOWEXECUTOR_DATAFLOW_LXX
2 #define _DATAFLOWEXECUTOR_DATAFLOW_LXX
3
4 #include "DataFlowExecutor_OutNode.hxx"
5
6 inline bool GraphExecutor::DataFlow::LoadDataFlow(
7        const GraphBase::SGraph &aDataFlow ) {
8   return GraphExecutor::OutNode::LoadDataFlow( aDataFlow ) ; 
9 }
10
11 inline bool GraphExecutor::DataFlow::LoadXml( const char* myFileName ) {
12   return GraphExecutor::OutNode::LoadXml( myFileName ) ; 
13 }
14
15 inline const SALOME_ModuleCatalog::Service * GraphExecutor::DataFlow::NodeService(
16                                              const char * aNodeName ) {
17   if ( GetGraphNode( aNodeName ) )
18     return GetGraphNode( aNodeName )->GetService() ;
19   return NULL ;
20 }
21
22 inline bool GraphExecutor::DataFlow::ChangeInputData( const char* ToNodeName ,
23                                                  const char* ToParameterName ,
24                                                  const CORBA::Any aValue ) {
25   if ( !IsValid() )
26     return false ;
27   return GraphBase::Graph::ChangeInputData( ToNodeName , ToParameterName ,
28                                             aValue ) ; 
29 } ;
30
31 inline bool GraphExecutor::DataFlow::AddInputSharedData(const char* ToNodeName1 ,
32                                                       const char* ToParameterName1 ,
33                                                       const char* ToNodeName2 ,
34                                                       const char* ToParameterName2 ) {
35   if ( !IsValid() )
36     return false ;
37   return GraphExecutor::OutNode::AddInputData( ToNodeName1 ,
38                                                ToParameterName1 ,
39                                                ToNodeName2 ,
40                                                ToParameterName2 ) ;
41 //                                         aKindOfPortValue ) ; 
42 } ;
43
44 inline bool GraphExecutor::DataFlow::IsValid() {
45   return GraphExecutor::OutNode::IsValid() ;
46 }
47
48 inline bool GraphExecutor::DataFlow::IsExecutable() {
49   return GraphExecutor::OutNode::IsExecutable() ;
50 }
51
52 inline bool GraphExecutor::DataFlow::Run( const bool AndSuspend ) {
53   return GraphExecutor::OutNode::Run( AndSuspend ) ;
54 }
55 inline bool GraphExecutor::DataFlow::Run( const char * aNodeName ,
56                                           const char * AtNodeName ,
57                                           const bool AndSuspend ) {
58   return GraphExecutor::OutNode::Run( aNodeName ,  AtNodeName , AndSuspend ) ;
59 }
60
61 inline long GraphExecutor::DataFlow::LastLevelDone() {
62   return GraphExecutor::OutNode::LastLevelDone() ;
63 }
64
65 inline long GraphExecutor::DataFlow::Threads() {
66   return GraphExecutor::OutNode::Threads() ;
67 }
68
69 inline bool GraphExecutor::DataFlow::Event( char ** aNodeName ,
70                                             SUPERV::GraphEvent & anEvent ,
71                                             SUPERV::GraphState & aState ,
72                                             bool WithWait ) {
73   return GraphExecutor::OutNode::Event( aNodeName , anEvent , aState , WithWait ) ;
74 }
75 inline bool GraphExecutor::DataFlow::EventW( char ** aNodeName ,
76                                              SUPERV::GraphEvent & anEvent ,
77                                              SUPERV::GraphState & aState ) {
78   return GraphExecutor::OutNode::EventW( aNodeName , anEvent , aState ) ;
79 }
80
81 inline SUPERV::GraphState GraphExecutor::DataFlow::State() {
82   return GraphExecutor::OutNode::State() ;
83 }
84
85 inline SUPERV::GraphState GraphExecutor::DataFlow::State(
86                                const char * aNodeName ) {
87   return GraphExecutor::OutNode::State( aNodeName ) ;
88 }
89
90 inline SUPERV::GraphState GraphExecutor::DataFlow::State(
91                                const char * aNodeName ,
92                                const char * anOutServiceParameterName ) {
93   return GraphExecutor::OutNode::State( aNodeName ,
94                                         anOutServiceParameterName ) ;
95 }
96
97 inline long GraphExecutor::DataFlow::Thread() {
98   return GraphExecutor::OutNode::ThreadNo() ;
99 }
100 inline long GraphExecutor::DataFlow::Thread( const char * aNodeName ) {
101   return GraphExecutor::OutNode::Thread( aNodeName ) ;
102 }
103
104 inline SUPERV::AutomatonState GraphExecutor::DataFlow::AutomatonState() {
105   return GraphExecutor::OutNode::AutomatonState() ;
106 }
107
108 inline SUPERV::AutomatonState GraphExecutor::DataFlow::AutomatonState(
109                                const char * aNodeName ) {
110   return GraphExecutor::OutNode::AutomatonState( aNodeName ) ;
111 }
112
113 inline SUPERV::ControlState GraphExecutor::DataFlow::ControlState() {
114   return GraphExecutor::OutNode::ControlState() ;
115 }
116
117 inline SUPERV::ControlState GraphExecutor::DataFlow::ControlState(
118                                const char * aNodeName ) {
119   return GraphExecutor::OutNode::ControlState( aNodeName ) ;
120 }
121
122 inline void GraphExecutor::DataFlow::ControlClear() {
123   return GraphExecutor::OutNode::ControlClear() ;
124 }
125
126 inline void GraphExecutor::DataFlow::ControlClear(
127                                const char * aNodeName ) {
128   return GraphExecutor::OutNode::ControlClear( aNodeName ) ;
129 }
130
131 inline bool GraphExecutor::DataFlow::IsWaiting() {
132   return GraphExecutor::OutNode::IsWaiting() ;
133 }
134 inline bool GraphExecutor::DataFlow::IsReady() {
135   return GraphExecutor::OutNode::IsReady() ;
136 }
137 inline bool GraphExecutor::DataFlow::IsRunning() {
138   return GraphExecutor::OutNode::IsRunning() ;
139 }
140 inline bool GraphExecutor::DataFlow::IsDone() {
141   return GraphExecutor::OutNode::IsDone() ;
142 }
143 inline bool GraphExecutor::DataFlow::IsSuspended() {
144   return GraphExecutor::OutNode::IsSuspended() ;
145 }
146
147 inline bool GraphExecutor::DataFlow::IsWaiting(const char * aNodeName ) {
148   return GraphExecutor::OutNode::IsWaiting( aNodeName ) ;
149 }
150 inline bool GraphExecutor::DataFlow::IsReady(const char * aNodeName ) {
151   return GraphExecutor::OutNode::IsReady( aNodeName ) ;
152 }
153 inline bool GraphExecutor::DataFlow::IsRunning(const char * aNodeName ) {
154   return GraphExecutor::OutNode::IsRunning( aNodeName ) ;
155 }
156 inline bool GraphExecutor::DataFlow::IsDone(const char * aNodeName ) {
157   return GraphExecutor::OutNode::IsDone( aNodeName ) ;
158 }
159 inline bool GraphExecutor::DataFlow::IsSuspended(const char * aNodeName ) {
160   return GraphExecutor::OutNode::IsSuspended( aNodeName ) ;
161 }
162
163 inline bool GraphExecutor::DataFlow::IsDone(
164                                   const char * aNodeName ,
165                                   const char * anOutServiceParameterName ) {
166   return GraphExecutor::OutNode::IsDone( aNodeName ,
167                                          anOutServiceParameterName ) ;
168 }
169
170 inline bool GraphExecutor::DataFlow::ReadyWait() {
171   return GraphExecutor::OutNode::ReadyWait() ;
172 }
173 inline bool GraphExecutor::DataFlow::RunningWait() {
174   return GraphExecutor::OutNode::RunningWait() ;
175 }
176 inline bool GraphExecutor::DataFlow::DoneWait() {
177   return GraphExecutor::OutNode::DoneWait() ;
178 }
179 inline bool GraphExecutor::DataFlow::SuspendedWait() {
180   return GraphExecutor::OutNode::SuspendedWait() ;
181 }
182
183 inline bool GraphExecutor::DataFlow::ReadyWait(const char * aNodeName ) {
184   return GraphExecutor::OutNode::ReadyWait( aNodeName ) ;
185 }
186 inline bool GraphExecutor::DataFlow::RunningWait(const char * aNodeName ) {
187   return GraphExecutor::OutNode::RunningWait( aNodeName ) ;
188 }
189 inline bool GraphExecutor::DataFlow::DoneWait(const char * aNodeName ) {
190   return GraphExecutor::OutNode::DoneWait( aNodeName ) ;
191 }
192 inline bool GraphExecutor::DataFlow::SuspendedWait(const char * aNodeName ) {
193   return GraphExecutor::OutNode::SuspendedWait( aNodeName ) ;
194 }
195
196 inline const CORBA::Any *GraphExecutor::DataFlow::GetInData(
197                                    const char * ToNodeName ,
198                                    const char * ToParameterName ) {
199   return GraphExecutor::OutNode::GetInData( ToNodeName ,
200                                             ToParameterName ) ;
201 }
202 inline const CORBA::Any *GraphExecutor::DataFlow::GetOutData(
203                                    const char * FromNodeName ,
204                                    const char * FromParameterName ) {
205   return GraphExecutor::OutNode::GetOutData( FromNodeName ,
206                                              FromParameterName ) ;
207 }
208 #endif
209
210
211