// execution will be aborted
//Behavior : in that case, that means that a SwitchBranch should be a DefaultBranch and it is not the case !
//1. DEFAULT_OUTPORT
- if ( anOutPort->IsGate() ) {
+//JR 07.04.2005 Debug : an OutPort of the SwitchNode may be linked to the DefaultPort of
+// the EndSwitchNode <==>
+// SwitchNode( Default ) --> EndSwitchNode( Default )
+ bool EndSwitchNode_Default = false ;
+ if ( anOutPort->InPortsSize() ) {
+ GraphBase::InPort * anInPort = anOutPort->ChangeInPorts( 0 ) ;
+ GraphBase::ComputingNode * aNode ;
+ aNode = GraphOfNode()->GetChangeGraphNode( anInPort->NodeName() ) ;
+ if ( aNode == anEndSwitchNode ) {
+ EndSwitchNode_Default = true ;
+ }
+ }
+//JR 07.04.2005 if ( anOutPort->IsGate() ) {
+ if ( anOutPort->IsGate() || EndSwitchNode_Default ) {
if ( anOutPort->InPortsSize() == 0 ) {
// DefaultPort of the SwitchNode is not connected
cdebug_out << Name() << "->SwitchNode::CheckSwitch EndSwitchNode "