public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (DataType.Length != 0) { hash ^= DataType.GetHashCode(); } if (TopicSelector.Length != 0) { hash ^= TopicSelector.GetHashCode(); } if (IdentityMatchPattern.Length != 0) { hash ^= IdentityMatchPattern.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
internal InterpretationGenerator(IEnumerable <FeatureCover> covers, InterpretationsFactory interpretations, ContextPool context, ProbabilisticQAModule owner) { var coversCopy = covers.ToArray(); if (coversCopy.Length == 0) { throw new NotSupportedException("Cannot create InterpretationGenerator without feature covers"); } Covers = coversCopy; _interpretations = interpretations; _context = context.Clone(); _owner = owner; _topicSelector = interpretations.GetTopicSelector(owner.Graph); if (_topicSelector.MoveNext()) { //initialize constraint selector _currentConstraintSelector = interpretations.GetConstraintSelector(owner.Graph, _topicSelector.SelectedNodes); } }