33 using namespace YACS::ENGINE;
55 set<InputPort *>::iterator iter;
57 for( set<InputPort *>::iterator iter2=vec.begin();iter2!=vec.end();iter2++)
68 for(set<InputPort *>::iterator iter = _setOfInputPort.begin(); iter != _setOfInputPort.end(); iter++)
77 DEBTRACE(
"OutputPort::edAddInputPort");
78 if(!isAlreadyInSet(phyPort))
81 _node->getImplementation(),
83 _setOfInputPort.insert(pwrap);
94 DEBTRACE(
"OutputPort::edAddInPropertyPort");
95 if(!isAlreadyInSet(phyPort))
98 _node->getImplementation(),
100 _setOfInputPort.insert(pwrap);
119 inputPort->getAllRepresentants(s);
121 for(set<InPort *>::iterator iter=s.begin();iter!=s.end();iter++)
124 _node->getRootNode()->edRemoveLink(
this,*iter);
135 set<InputPort *>::iterator iter;
136 for(iter=_setOfInputPort.begin();iter!=_setOfInputPort.end();iter++)
137 if((*iter)->getPublicRepresentant()==publicRepr)
139 if(iter!=_setOfInputPort.end())
142 if((*iter)->isIntermediate())
144 _setOfInputPort.erase(iter);
146 return edGetNumberOfOutLinks();
149 throw Exception(
"OutputPort::edRemoveInputPort : link does not exist, unable to remove it");
155 set<InputPort *>::iterator iter;
166 set<InputPort *>::const_iterator iter;
169 if((*iter)->getPublicRepresentant() == publicRepr)
174 for(set<InPort *>::iterator iter2=s.begin();iter2!=s.end();iter2++)
176 if((*iter2)->getPublicRepresentant() == publicRepr)
190 if((*iter)->getPublicRepresentant()==publicRepr)
211 string what=
"not compatible type of port requested during building of link FROM ";
212 what+=NAME; what+=
" TO "; what+=inPort->getNameOfTypeOfCurrentInstance();
217 return edAddInputPort(static_cast<InputPort*>(inPort));
221 return edAddInPropertyPort(static_cast<InPropertyPort*>(inPort));
230 if(inPort->getNameOfTypeOfCurrentInstance()!=
InputPort::NAME && !forward)
232 string what=
"not compatible type of port requested during destruction of for link FROM ";
233 what+=NAME; what+=
" TO "; what+=inPort->getNameOfTypeOfCurrentInstance();
236 return edRemoveInputPort(static_cast<InputPort*>(inPort),forward);
243 (*iter)->getAllRepresentants(s);
249 string xmldump =
"<value><error> NO_SERIALISATION_AVAILABLE </error></value>";