3 using namespace YACS::ENGINE;
6 Switch::Switch(const string& name):ComposedNode(name)
14 void Switch::edSetNumberOfCases(int numberOfCases)
16 _vectorOfNode.resize(numberOfCases);
19 void Switch::edSetNode(int caseId, Node *node) throw(Exception)
21 if(caseId>=_vectorOfNode.size())
22 throw Exception("Switch::edSetNode : caseId is too large compared to number of cases");
23 _vectorOfNode[caseId]=node;
26 void Switch::checkNoCyclePassingThrough(Node *node) throw(Exception)
28 throw Exception("Switch::checkNoCyclePassingThrough : uncorrect control flow link relative to switch");