4 using namespace YACS::ENGINE;
7 const char InGate::NAME[]="InGate";
9 InGate::InGate(Node *node):Port(node),_nbPrecursor(0),_nbPrecursorDone(0),_colour(YACS::White)
13 string InGate::getNameOfTypeOfCurrentInstance() const
18 void InGate::exNotifyFromPrecursor()
21 if(exIsReady() && _node)
22 _node->exUpdateState();
25 void InGate::edAppendPrecursor()
30 void InGate::edRemovePrecursor()
35 void InGate::edSet(int nbOfPrecursors)
37 _nbPrecursor=nbOfPrecursors;
40 void InGate::exReset()
45 bool InGate::exIsReady() const
47 return _nbPrecursor==_nbPrecursorDone;