private bool TryMatchComminityScore(CommunityScore cs) { var match = new Predicate <CommunityScore>(n => { return(n.Score > PatternCriteria.CommunityScoreThreshold && PatternCriteria.Semester.Equals(n.Semester)); }); if (CheckNode(cs, PatternNodes.CommunityScore, match)) { this.pattern.SetMatchedNodeForPatternNode(PatternNodes.CommunityScore, cs); return(true); } return(false); }
public static bool CheckCommunityScore(CommunityScore cs) { return(cs.Score > CommunityScoreThreshold && cs.Semester.Equals(Semester)); }