+ public DataSet updateSets(Node currentNode) {
+ //Empty the in set of the node
+ currentNode.emptyInSet();
+
+ DataList outSetApp1List = currentNode.getOutSet().getApp1DataList();
+ DataList outSetApp2List = currentNode.getOutSet().getApp2DataList();
+
+ //Store the out set of this state to the temporary data set
+ DataSet tempOutSet = new DataSet(outSetApp1List.getAppSet(),
+ outSetApp1List.getValue(),
+ outSetApp2List.getAppSet(),
+ outSetApp2List.getValue());
+
+ //Set input set according to output set of pred states of current state
+ setInSet(currentNode);
+
+ //Set dataLists of outSet to dataLists of setSet if it is valid, otherwise to dataLists of inSet
+ setOutSet(currentNode);
+
+ return tempOutSet;
+ }
+