1 // SUPERV GraphExecutor : contains classes that permit execution of graphs and particularly the execution automaton
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : DataFlowExecutor_DataFlow.lxx
27 #ifndef _DATAFLOWEXECUTOR_DATAFLOW_LXX
28 #define _DATAFLOWEXECUTOR_DATAFLOW_LXX
30 #include "DataFlowExecutor_OutNode.hxx"
32 inline bool GraphExecutor::DataFlow::LoadDataFlow(
33 const GraphBase::SGraph &aDataFlow ) {
34 return GraphExecutor::OutNode::LoadDataFlow( aDataFlow ) ;
37 inline bool GraphExecutor::DataFlow::LoadXml( const char* myFileName ) {
38 return GraphExecutor::OutNode::LoadXml( myFileName ) ;
41 inline const SALOME_ModuleCatalog::Service * GraphExecutor::DataFlow::NodeService(
42 const char * aNodeName ) {
43 if ( GetGraphNode( aNodeName ) )
44 return GetGraphNode( aNodeName )->GetService() ;
48 inline bool GraphExecutor::DataFlow::ChangeInputData( const char* ToNodeName ,
49 const char* ToParameterName ,
50 const CORBA::Any aValue ) {
53 return GraphBase::Graph::ChangeInputData( ToNodeName , ToParameterName ,
57 inline bool GraphExecutor::DataFlow::AddInputSharedData(const char* ToNodeName1 ,
58 const char* ToParameterName1 ,
59 const char* ToNodeName2 ,
60 const char* ToParameterName2 ) {
63 return GraphExecutor::OutNode::AddInputData( ToNodeName1 ,
67 // aKindOfPortValue ) ;
70 inline bool GraphExecutor::DataFlow::IsValid() {
71 return GraphExecutor::OutNode::IsValid() ;
74 inline bool GraphExecutor::DataFlow::IsExecutable() {
75 return GraphExecutor::OutNode::IsExecutable() ;
78 inline bool GraphExecutor::DataFlow::Run( const bool AndSuspend ) {
79 return GraphExecutor::OutNode::Run( AndSuspend ) ;
81 inline bool GraphExecutor::DataFlow::Run( const char * aNodeName ,
82 const char * AtNodeName ,
83 const bool AndSuspend ) {
84 return GraphExecutor::OutNode::Run( aNodeName , AtNodeName , AndSuspend ) ;
87 inline long GraphExecutor::DataFlow::LastLevelDone() {
88 return GraphExecutor::OutNode::LastLevelDone() ;
91 inline long GraphExecutor::DataFlow::Threads() {
92 return GraphExecutor::OutNode::Threads() ;
95 inline bool GraphExecutor::DataFlow::Event( char ** aNodeName ,
96 SUPERV::GraphEvent & anEvent ,
97 SUPERV::GraphState & aState ,
99 return GraphExecutor::OutNode::Event( aNodeName , anEvent , aState , WithWait ) ;
101 inline bool GraphExecutor::DataFlow::EventW( char ** aNodeName ,
102 SUPERV::GraphEvent & anEvent ,
103 SUPERV::GraphState & aState ) {
104 return GraphExecutor::OutNode::EventW( aNodeName , anEvent , aState ) ;
106 inline long GraphExecutor::DataFlow::EventQSize() {
107 return GraphExecutor::OutNode::EventQSize() ;
110 inline SUPERV::GraphState GraphExecutor::DataFlow::State() {
111 return GraphExecutor::OutNode::State() ;
114 inline SUPERV::GraphState GraphExecutor::DataFlow::State(
115 const char * aNodeName ) {
116 return GraphExecutor::OutNode::State( aNodeName ) ;
119 inline SUPERV::GraphState GraphExecutor::DataFlow::State(
120 const char * aNodeName ,
121 const char * anOutServiceParameterName ) {
122 return GraphExecutor::OutNode::State( aNodeName ,
123 anOutServiceParameterName ) ;
126 inline long GraphExecutor::DataFlow::Thread() {
127 return GraphExecutor::OutNode::ThreadNo() ;
129 inline long GraphExecutor::DataFlow::Thread( const char * aNodeName ) {
130 return GraphExecutor::OutNode::Thread( aNodeName ) ;
133 inline SUPERV::AutomatonState GraphExecutor::DataFlow::AutomatonState() {
134 return GraphExecutor::OutNode::AutomatonState() ;
137 inline SUPERV::AutomatonState GraphExecutor::DataFlow::AutomatonState(
138 const char * aNodeName ) {
139 return GraphExecutor::OutNode::AutomatonState( aNodeName ) ;
142 inline SUPERV::ControlState GraphExecutor::DataFlow::ControlState() {
143 return GraphExecutor::OutNode::ControlState() ;
146 inline SUPERV::ControlState GraphExecutor::DataFlow::ControlState(
147 const char * aNodeName ) {
148 return GraphExecutor::OutNode::ControlState( aNodeName ) ;
151 inline void GraphExecutor::DataFlow::ControlClear() {
152 return GraphExecutor::OutNode::ControlClear() ;
155 inline void GraphExecutor::DataFlow::ControlClear(
156 const char * aNodeName ) {
157 return GraphExecutor::OutNode::ControlClear( aNodeName ) ;
160 inline bool GraphExecutor::DataFlow::IsWaiting() {
161 return GraphExecutor::OutNode::IsWaiting() ;
163 inline bool GraphExecutor::DataFlow::IsReady() {
164 return GraphExecutor::OutNode::IsReady() ;
166 inline bool GraphExecutor::DataFlow::IsRunning() {
167 return GraphExecutor::OutNode::IsRunning() ;
169 inline bool GraphExecutor::DataFlow::IsDone() {
170 return GraphExecutor::OutNode::IsDone() ;
172 inline bool GraphExecutor::DataFlow::IsSuspended() {
173 return GraphExecutor::OutNode::IsSuspended() ;
176 inline bool GraphExecutor::DataFlow::IsWaiting(const char * aNodeName ) {
177 return GraphExecutor::OutNode::IsWaiting( aNodeName ) ;
179 inline bool GraphExecutor::DataFlow::IsReady(const char * aNodeName ) {
180 return GraphExecutor::OutNode::IsReady( aNodeName ) ;
182 inline bool GraphExecutor::DataFlow::IsRunning(const char * aNodeName ) {
183 return GraphExecutor::OutNode::IsRunning( aNodeName ) ;
185 inline bool GraphExecutor::DataFlow::IsDone(const char * aNodeName ) {
186 return GraphExecutor::OutNode::IsDone( aNodeName ) ;
188 inline bool GraphExecutor::DataFlow::IsSuspended(const char * aNodeName ) {
189 return GraphExecutor::OutNode::IsSuspended( aNodeName ) ;
192 inline bool GraphExecutor::DataFlow::IsDone(
193 const char * aNodeName ,
194 const char * anOutServiceParameterName ) {
195 return GraphExecutor::OutNode::IsDone( aNodeName ,
196 anOutServiceParameterName ) ;
199 inline bool GraphExecutor::DataFlow::ReadyWait() {
200 return GraphExecutor::OutNode::ReadyWait() ;
202 inline bool GraphExecutor::DataFlow::RunningWait() {
203 return GraphExecutor::OutNode::RunningWait() ;
205 inline bool GraphExecutor::DataFlow::DoneWait() {
206 return GraphExecutor::OutNode::DoneWait() ;
208 inline bool GraphExecutor::DataFlow::SuspendedWait() {
209 return GraphExecutor::OutNode::SuspendedWait() ;
212 inline bool GraphExecutor::DataFlow::ReadyWait(const char * aNodeName ) {
213 return GraphExecutor::OutNode::ReadyWait( aNodeName ) ;
215 inline bool GraphExecutor::DataFlow::RunningWait(const char * aNodeName ) {
216 return GraphExecutor::OutNode::RunningWait( aNodeName ) ;
218 inline bool GraphExecutor::DataFlow::DoneWait(const char * aNodeName ) {
219 return GraphExecutor::OutNode::DoneWait( aNodeName ) ;
221 inline bool GraphExecutor::DataFlow::SuspendedWait(const char * aNodeName ) {
222 return GraphExecutor::OutNode::SuspendedWait( aNodeName ) ;
225 inline const CORBA::Any *GraphExecutor::DataFlow::GetInData(
226 const char * ToNodeName ,
227 const char * ToParameterName ) {
228 return GraphExecutor::OutNode::GetInData( ToNodeName ,
231 inline const CORBA::Any *GraphExecutor::DataFlow::GetOutData(
232 const char * FromNodeName ,
233 const char * FromParameterName ) {
234 return GraphExecutor::OutNode::GetOutData( FromNodeName ,
235 FromParameterName ) ;