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); }
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); }
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); }
public Classification(Classification src) { src.CopyTo(this); }