_ReadOnly = true ;
}
+//JR 07.07.2005 : old code from the first prototype
+#if 0
inline char * GraphEditor::DataFlow::DataFlowInfo() {
ostringstream s;
IsValid() ;
s << aNodeName << " not found" << ends ;
return CORBA::string_dup( s.str().c_str() );
}
+#endif
inline bool GraphEditor::DataFlow::LoadDataFlow( const GraphBase::SGraph * aDataFlow ) {
if ( _ReadOnly )
//JR Optional parameter kLoopSwitch (default = true) :
//In some cases we do not need to check the validity of loops and switchs
-inline bool GraphEditor::DataFlow::IsValid(bool kLoopSwitch ) {
- return GraphEditor::OutNode::IsValid( kLoopSwitch ) ;
+//inline bool GraphEditor::DataFlow::IsValid(bool kLoopSwitch ) {
+inline bool GraphEditor::DataFlow::IsValid() {
+// return GraphEditor::OutNode::IsValid( kLoopSwitch ) ;
+ return GraphEditor::OutNode::IsValid() ;
}
inline bool GraphEditor::DataFlow::IsExecutable() {
}
inline long GraphEditor::DataFlow::LevelMax() {
- if ( !IsValid() ) {
+// if ( !IsValid( false ) ) {
+ if ( !IsExecutable() ) {
return 0 ;
}
return Graph()->LevelMax() ;
}
inline SUPERV::ListOfStrings * GraphEditor::DataFlow::LevelNodes(long aLevel ) {
- if ( !IsValid( false ) ) {
+// if ( !IsValid( false ) ) {
+ if ( !IsExecutable() ) {
return ((SUPERV::ListOfStrings * ) NULL ) ;
}
return Graph()->LevelNodes( aLevel ) ;
}
inline long GraphEditor::DataFlow::ThreadsMax() {
- if ( !IsValid() ) {
+// if ( !IsValid() ) {
+ if ( !IsExecutable() ) {
return 0 ;
}
return Graph()->ThreadsMax() ;
}
inline long GraphEditor::DataFlow::SubGraphsNumber() {
- if ( !IsValid() ) {
+// if ( !IsValid() ) {
+ if ( !IsExecutable() ) {
return 0 ;
}
return Graph()->SubGraphsNumber() ;
}
inline long GraphEditor::DataFlow::SubStreamGraphsNumber() {
- if ( !IsValid() ) {
+// if ( !IsValid() ) {
+ if ( !IsExecutable() ) {
return 0 ;
}
return StreamGraph()->SubStreamGraphsNumber() ;