Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public double calculateSimilarity(AttributeImportance other)
 {
     if (RecommendSuppress || other.RecommendSuppress)
     {
         return(INVALID_DISTANCE);
     }
     else
     {
         double levelDifference = Math.Abs(other.Value - Value);
         if (levelDifference < LEVEL_MATCH_THRESHOLD)
         {
             return(0);
         }
         else
         {
             return(levelDifference);
         }
     }
 }