public QueryBucket(QueryBucket bucket) { this.tokens = new Dictionary<object,object>(bucket.tokens); this.questionLeft = bucket.questionLeft; this.uriUsed = new Dictionary<object,object>(bucket.tokens); this.uriToDo = new List<string>(bucket.uriToDo); //this.rating[0] = bucket.getRating(); //to be discussed }
public bool EqualSolution(QueryBucket bucket) { if (this.tokens.Count != bucket.tokens.Count) return false; foreach (List<object> value in tokens.Values) { object /*LexiconToken*/ tmpToken = /*(LexiconToken casting)*/value[0]; string tmpWordsUsed = (string)value[1]; if (!bucket.ContainsQueryPart(tmpToken.BuildQueryPart(tmpWordsUsed)/*LexiconToken method*/)) return false; } return true; }