48 for(list< std::pair<OutGate *, bool> >::iterator iter=
_backLinks.begin();iter!=
_backLinks.end();iter++)
49 ((*iter).first)->edRemoveInGate(
this,
false);
59 bool operator()(
const std::pair<OutGate *,bool>& elt)
const {
return elt.first==_itf; }
70 DEBTRACE(
"InGate::exNotifyFromPrecursor");
73 throw YACS::Exception(
"InGate::exNotifyFromPrecursor : precursor not found !");
103 (*iter).second=
false;
105 _backLinks.push_back(pair<OutGate *, bool>(from,
false));
122 for(list< std::pair<OutGate *, bool> >::iterator iter=
_backLinks.begin();iter!=
_backLinks.end();iter++)
123 (*iter).second=
false;
129 for(list< std::pair<OutGate *, bool> >::const_iterator iter=
_backLinks.begin();iter!=
_backLinks.end() && isReady;iter++)
130 isReady=(*iter).second;
136 list<OutGate *> listo;
137 for(list< std::pair<OutGate *, bool> >::const_iterator iter=
_backLinks.begin();iter!=
_backLinks.end();iter++)
138 listo.push_back(iter->first);
148 throw YACS::Exception(
"InGate::setPrecursorDone : precursor not found !");
bool operator()(const std::pair< OutGate *, bool > &elt) const
void setPrecursorDone(OutGate *fromgate)
void edDisconnectAllLinksToMe()
void exNotifyFailed()
Notify this port that an upstream node connected by a control flow link has failed.
void edRemovePrecursor(OutGate *fromgate)
std::string getNameOfTypeOfCurrentInstance() const
std::list< OutGate * > getBackLinks()
void exNotifyDisabled()
Notify this port that an upstream node connected by a control flow link has been disabled.
void exNotifyFromPrecursor(OutGate *fromgate)
Notify this port that an upstream node connected by a control flow link is finished.
int getNumberOfBackLinks() const
std::list< std::pair< OutGate *, bool > > _backLinks
void edAppendPrecursor(OutGate *fromgate)
Base class for all nodes.
virtual void exUpdateState()
Update the node state.
virtual void exDisabledState()
Notify this node that it has been disabled.
virtual void exFailedState()
Notify this node that its execution has failed.
Base class for all ports.