1 #ifndef __OUTGATE_HXX__
2 #define __OUTGATE_HXX__
5 #include "Exception.hxx"
17 class OutGate : public Port
19 friend class ElementaryNode;
21 std::map<InGate *, bool> _setOfInGate;
23 static const char NAME[];
26 std::string getNameOfTypeOfCurrentInstance() const;
29 void exNotifyFailed();
30 void exNotifyDisabled();
31 void edDisconnectAllLinksFromMe();
32 bool edAddInGate(InGate *inGate);
33 std::map<InGate *, bool>& edMapInGate() { return _setOfInGate; }
34 std::set<InGate *> edSetInGate() const;
35 void edRemoveInGate(InGate *inGate, bool coherenceWithInGate=true) throw(Exception);
36 int getNbOfInGatesConnected() const;
37 bool isAlreadyInSet(InGate *inGate) const;
38 virtual std::string typeName() {return "YACS__ENGINE__OutGate";}
40 void edRemoveInGateOneWay(InGate *inGate);