コード例 #1
0
 public bool MatchSight(Classification right)
 {
     if (!MatchColor(right))
     {
         return(false);
     }
     if (physicality != Physicalities.NotApplicable && physicality != right.physicality)
     {
         return(false);
     }
     Debug.Assert(right.name != null);
     if (!String.IsNullOrEmpty(name) && !right.name.Contains(name))
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 public bool MatchHearing(Classification right)
 {
     if (audioImpression != AudioImpression.NotApplicable && audioImpression != right.audioImpression)
     {
         return(false);
     }
     if (audioVolume != AudioVolume.NotApplicable && audioVolume != right.audioVolume)
     {
         return(false);
     }
     Debug.Assert(right.name != null);
     if (!String.IsNullOrEmpty(name) && !right.name.Contains(name))
     {
         return(false);
     }
     return(true);
 }
コード例 #3
0
        public bool MatchTouch(Classification right)
        {
            // added shade and color to make programming easier
            // BUMP - RED - FRUIT
            if (!MatchColor(right))
            {
                return(false);
            }

            if (physicality != Physicalities.NotApplicable && physicality != right.physicality)
            {
                return(false);
            }
            Debug.Assert(right.name != null);
            if (!String.IsNullOrEmpty(name) && !right.name.Contains(name))
            {
                return(false);
            }
            return(true);
        }
コード例 #4
0
 public Classification(Classification src)
 {
     src.CopyTo(this);
 }