3 using namespace YACS::ENGINE;
5 Switch::Switch(const std::string& name):ComposedNode(name)
13 void Switch::edSetNumberOfCases(int numberOfCases)
15 _vectorOfNode.resize(numberOfCases);
18 void Switch::edSetNode(int caseId, Node *node) throw(Exception)
20 if(caseId>=_vectorOfNode.size())
21 throw Exception("Switch::edSetNode : caseId is too large compared to number of cases");
22 _vectorOfNode[caseId]=node;
25 void Switch::checkNoCyclePassingThrough(Node *node) throw(Exception)
27 throw Exception("Switch::checkNoCyclePassingThrough : uncorrect control flow link relative to switch");