示例#1
0
 public bool Equivalent(TransitionLossKey other)
 {
     return(Equals(CustomIonEquivalenceTestValue, other.CustomIonEquivalenceTestValue) &&
            other.Transition.Equivalent(Transition) &&
            Equals(other.Losses, Losses) &&
            Equals(other.ComplexFragmentIonName, ComplexFragmentIonName));
 }
示例#2
0
 public bool Equals(TransitionLossKey other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Transition, Transition) && Equals(other.Losses, Losses));
 }
示例#3
0
 public bool Equals(TransitionLossKey other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Transition, Transition) && Equals(other.Losses, Losses) &&
            Equals(other.ComplexFragmentIonName, ComplexFragmentIonName));
 }
示例#4
0
 public bool Equivalent(TransitionLossKey other)
 {
     return Equals(CustomIonEquivalenceTestValue, other.CustomIonEquivalenceTestValue) &&
         other.Transition.Equivalent(Transition) &&
         Equals(other.Losses, Losses);
 }
示例#5
0
 public bool Equals(TransitionLossKey other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Transition, Transition) && Equals(other.Losses, Losses);
 }
示例#6
0
 public TransitionEquivalentKey(TransitionGroupDocNode parent, TransitionDocNode nodeTran)
 {
     _nodeTran = nodeTran.Transition;
     _customIonEquivalenceTestText = new TransitionLossKey(parent, nodeTran, null).CustomIonEquivalenceTestValue;
 }
示例#7
0
 public TransitionKey(TransitionGroupDocNode nodeGroup, TransitionLossKey tranLossKey, IsotopeLabelType labelType)
 {
     var transition = tranLossKey.Transition;
     _ionType = transition.IonType;
     _customIonEquivalenceTestValue = tranLossKey.CustomIonEquivalenceTestValue;
     _ionOrdinal = transition.Ordinal;
     _massIndex = transition.MassIndex;
     _decoyMassShift = transition.DecoyMassShift;
     _charge = transition.Charge;
     _precursorCharge = nodeGroup.TransitionGroup.PrecursorCharge;
     _losses = tranLossKey.Losses;
     _labelType = labelType;
 }