public Schema(ISessionFactory sessionFactory, DataSettings dataSettings) { _sessionFactory = sessionFactory; _annotationDefNames = new HashSet<string>(); if (dataSettings != null) { foreach (var annotationDef in dataSettings.AnnotationDefs) { _annotationDefNames.Add(AnnotationDef.GetKey(annotationDef.Name)); } } }
public bool Equals(DataSettings other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ArrayUtil.EqualsDeep(other._annotationDefs, _annotationDefs) && ArrayUtil.EqualsDeep(other._groupComparisonDefs, _groupComparisonDefs) && Equals(ViewSpecList, other.ViewSpecList) && Equals(PanoramaPublishUri, other.PanoramaPublishUri) && Equals(DocumentGuid, other.DocumentGuid)); }
public SrmSettings ChangeDataSettings(DataSettings prop) { return ChangeProp(ImClone(this), im => im.DataSettings = prop); }
public SrmSettings(string name, PeptideSettings peptideSettings, TransitionSettings transitionSettings, DataSettings dataSettings, DocumentRetentionTimes documentRetentionTimes) : base(name) { PeptideSettings = peptideSettings; TransitionSettings = transitionSettings; DataSettings = dataSettings; DocumentRetentionTimes = documentRetentionTimes; // Create cached calculator instances CreatePrecursorMassCalcs(); CreateFragmentMassCalcs(); }
public bool Equals(DataSettings other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return ArrayUtil.EqualsDeep(other._annotationDefs, _annotationDefs) && ArrayUtil.EqualsDeep(other._groupComparisonDefs, _groupComparisonDefs) && Equals(ViewSpecList, other.ViewSpecList) && Equals(PanoramaPublishUri, other.PanoramaPublishUri) && Equals(DocumentGuid, other.DocumentGuid); }
public DataSettings GetDataSettings(DataSettings dataSettings) { var selectedViews = new HashSet<string>(chooseViewsControl.CheckedViews .Where(viewName=>viewName.GroupId.Equals(PersistedViews.MainGroup.Id)) .Select(viewName=>viewName.Name)); var viewSpecs = Settings.Default.PersistedViews.GetViewSpecList(PersistedViews.MainGroup.Id) .ViewSpecs.Where(view => selectedViews.Contains(view.Name)); return dataSettings.ChangeAnnotationDefs(_annotationsListBoxDriver.Chosen) .ChangeGroupComparisonDefs(_groupComparisonsListBoxDriver.Chosen) .ChangeViewSpecList(new ViewSpecList(viewSpecs)); }