public JobAttribute(string name, string id, AttributeLevel importance, AttributeImportance level, AttributeType type) { this.Name = name; this.ElementID = id; this.Importance = importance; this.Level = level; this.Type = type; }
public double calculateSimilarity(AttributeLevel other) { if (NotRelevant || RecommendSuppress || other.RecommendSuppress || other.NotRelevant) { return(INVALID_DISTANCE); } else { double importanceDifference = Math.Abs(other.Value - Value); if (importanceDifference < IMPORTANCE_MATCH_THRESHOLD) { return(0); } else { return(importanceDifference); } } }