Esempio n. 1
0
 public bool Equals(UniprotFeature other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.FeatureDescription != null && other.FeatureStatus != null && other.FeatureId != null &&
            other.FeatureDescription.Equals(FeatureDescription) && other.FeatureStatus.Equals(FeatureStatus) &&
            other.FeatureId.Equals(FeatureId));
 }
Esempio n. 2
0
        public void AddFeature(string featureType, string featureDescription, string featureStatus, string featureId)
        {
            if (features == null)
            {
                features = new Dictionary <FeatureType, List <UniprotFeature> >();
            }
            FeatureType key = FeatureType.GetFeatureType(featureType);

            if (!features.ContainsKey(key))
            {
                features.Add(key, new List <UniprotFeature>());
            }
            currentFeature = new UniprotFeature(featureDescription, featureStatus, featureId);
            features[key].Add(currentFeature);
        }
Esempio n. 3
0
 public bool Equals(UniprotFeature other)
 {
     if (ReferenceEquals(null, other)){
         return false;
     }
     if (ReferenceEquals(this, other)){
         return true;
     }
     return other.FeatureDescription != null && other.FeatureStatus != null && other.FeatureId != null &&
             other.FeatureDescription.Equals(FeatureDescription) && other.FeatureStatus.Equals(FeatureStatus) &&
             other.FeatureId.Equals(FeatureId);
 }
Esempio n. 4
0
 public void AddFeature(string featureType, string featureDescription, string featureStatus, string featureId)
 {
     if (features == null){
         features = new Dictionary<FeatureType, List<UniprotFeature>>();
     }
     FeatureType key = FeatureType.GetFeatureType(featureType);
     if (!features.ContainsKey(key)){
         features.Add(key, new List<UniprotFeature>());
     }
     currentFeature = new UniprotFeature(featureDescription, featureStatus, featureId);
     features[key].Add(currentFeature);
 }