public static PrositRetentionTimeModel GetInstance(string model)
        {
            var intensityModel = _instances.FirstOrDefault(p => p.Model == model);

            if (intensityModel == null)
            {
                _instances.Add(intensityModel = new PrositRetentionTimeModel(model));
            }
            return(intensityModel);
        }
示例#2
0
 public PrositRequest(PrositPredictionClient client, PrositIntensityModel intensityModel,
                      PrositRetentionTimeModel rtModel, SrmSettings settings,
                      PeptideDocNode peptide, TransitionGroupDocNode precursor, int nce, Action updateCallback)
 {
     Client          = client;
     IntensityModel  = intensityModel;
     RTModel         = rtModel;
     Settings        = settings;
     Precursor       = precursor;
     Peptide         = peptide;
     NCE             = nce;
     _updateCallback = updateCallback;
 }
 private bool Equals(PrositRetentionTimeModel other)
 {
     return(string.Equals(Model, other.Model));
 }