cdebug_in << "DefPortsOfNode::AddInPort : " << *NodeName << " " << aKind << " "
<< InputParameterName << " " << InputParameterType << endl ;
GraphBase::InPort * anInPort = NULL ;
+ SUPERV::KindOfPort aPortKind = SUPERV::UndefinedParameter ;
if ( aKind == SUPERV::InLineNode || aKind == SUPERV::LoopNode ||
aKind == SUPERV::EndLoopNode || aKind == SUPERV::SwitchNode ||
aKind == SUPERV::EndSwitchNode || aKind == SUPERV::GOTONode ) {
- SUPERV::KindOfPort aPortKind = SUPERV::InLineParameter ;
- if ( aKind == SUPERV::EndSwitchNode ) {
- aPortKind = SUPERV::EndSwitchParameter ;
- }
+ aPortKind = SUPERV::ServiceParameter ;
+ }
+ else {
+ aPortKind = SUPERV::DataStreamParameter ;
+ }
+
+ // SUPERV::KindOfPort aPortKind = SUPERV::InLineParameter ;
+ // if ( aKind == SUPERV::EndSwitchNode ) {
+ // aPortKind = SUPERV::EndSwitchParameter ;
+ // }
anInPort = GetChangeInPort( InputParameterName ) ;
if ( anInPort == NULL ) {
_NodeInPortsSize = _NodeInPortsSize + 1 ;
SALOME_ModuleCatalog::ServicesParameter aServiceParameter ;
aServiceParameter.Parametername = InputParameterName ;
aServiceParameter.Parametertype = InputParameterType ;
- SUPERV::KindOfPort aPortKind = SUPERV::ServiceParameter ;
if ( aKind != SUPERV::EndLoopNode ) {
_NodeInPorts[ _NodeInPortsSize-1 ] = _NodeInPorts[ _NodeInPortsSize-2 ] ; // Gate - Default
_MapOfNodeInPorts.erase( _NodeInPorts[ _NodeInPortsSize-1 ]->PortName() ) ;
else {
cdebug << "InPort already exists" << endl ;
}
- }
+ // }
cdebug_out << "DefPortsOfNode::AddInPort _NodeInPortsSize " << _NodeInPortsSize
<< " " << anInPort->Kind() << endl ;
return anInPort ;
cdebug_in << "DefPortsOfNode::AddOutPort : " << *NodeName << " " << aKind << " "
<< OutputParameterName << " " << OutputParameterType << endl ;
GraphBase::OutPort * anOutPort = NULL ;
+ SUPERV::KindOfPort aPortKind = SUPERV::UndefinedParameter ;
if ( aKind == SUPERV::InLineNode || aKind == SUPERV::LoopNode ||
aKind == SUPERV::EndLoopNode || aKind == SUPERV::SwitchNode ||
aKind == SUPERV::EndSwitchNode || aKind == SUPERV::GOTONode ) {
- SUPERV::KindOfPort aPortKind = SUPERV::InLineParameter ;
+ aPortKind = SUPERV::InLineParameter ;
+ }
+ else {
+ aPortKind = SUPERV::DataStreamParameter ;
+ }
anOutPort = GetChangeOutPort( OutputParameterName ) ;
if ( anOutPort == NULL ) {
_NodeOutPortsSize = _NodeOutPortsSize + 1 ;
SALOME_ModuleCatalog::ServicesParameter aServiceParameter ;
aServiceParameter.Parametername = OutputParameterName ;
aServiceParameter.Parametertype = OutputParameterType ;
- if ( aKind == SUPERV::SwitchNode ) {
- _NodeOutPorts[ _NodeOutPortsSize-1 ] = _NodeOutPorts[ _NodeOutPortsSize-2 ] ; // Default
+ if ( aKind != SUPERV::SwitchNode ) {
+ _NodeOutPorts[ _NodeOutPortsSize-1 ] = _NodeOutPorts[ _NodeOutPortsSize-2 ] ; // Gate - Default
_MapOfNodeOutPorts.erase( _NodeOutPorts[ _NodeOutPortsSize-1 ]->PortName() ) ;
_MapOfNodeOutPorts[ _NodeOutPorts[ _NodeOutPortsSize-1 ]->PortName() ] = _NodeOutPortsSize-1 + 1 ;
_MapOfNodeOutPorts[ OutputParameterName ] = _NodeOutPortsSize - 1 ;
else {
cdebug << "OutPort already exists" << endl ;
}
- }
+ // }
cdebug_out << "DefPortsOfNode::AddOutPort _NodeOutPortsSize "
<< _NodeOutPortsSize << " " << anOutPort->Kind() << endl ;
return anOutPort ;