Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static bool CheckCommunityScore(CommunityScore cs)
 {
     return(cs.Score > CommunityScoreThreshold && cs.Semester.Equals(Semester));
 }