const CORBA::Any * GetOutData( const char * FromNodeName ,
const char * FromParameterName ) ;
- bool IsValid() ;
+ bool IsValid(bool kLoopSwitch = true ) ;
bool IsExecutable() ;
void Executing() ; // asv : removed a bool parameter, use Editing() to set _Executing = false
FromParameterName ) ;
}
-inline bool GraphEditor::DataFlow::IsValid() {
- return GraphEditor::OutNode::IsValid() ;
+//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::IsExecutable() {
}
inline long GraphEditor::DataFlow::LevelMax() {
- if ( !IsValid() ) {
+ if ( !IsValid( false ) ) {
return 0 ;
}
return Graph()->LevelMax() ;
}
inline SUPERV::ListOfStrings * GraphEditor::DataFlow::LevelNodes(long aLevel ) {
- if ( !IsValid() ) {
+ if ( !IsValid( false ) ) {
return ((SUPERV::ListOfStrings * ) NULL ) ;
}
return Graph()->LevelNodes( aLevel ) ;