protected AnnotationPropertyDescriptor(SkylineDataSchema dataSchema, AnnotationDef annotationDef, Attribute[] attributes) : base(AnnotationDef.ANNOTATION_PREFIX + annotationDef.Name, attributes) { SkylineDataSchema = dataSchema; _annotationDef = CachedValue.Create(dataSchema, () => FindAnnotationDef(annotationDef)); _isValid = true; }
public SkylineDataSchema(IDocumentContainer documentContainer, DataSchemaLocalizer dataSchemaLocalizer) : base(dataSchemaLocalizer) { _documentContainer = documentContainer; _document = _documentContainer.Document; ChromDataCache = new ChromDataCache(); _replicates = CachedValue.Create(this, CreateReplicateList); _resultFiles = CachedValue.Create(this, CreateResultFileList); }
public ListColumnPropertyDescriptor(SkylineDataSchema dataSchema, string listName, AnnotationDef annotationDef) : base(AnnotationDef.ANNOTATION_PREFIX + annotationDef.Name, AnnotationPropertyDescriptor.GetAttributes(annotationDef)) { SkylineDataSchema = dataSchema; ListName = listName; AnnotationDef = annotationDef; _listInfo = CachedValue.Create(dataSchema, () => GetListInfo(SkylineDataSchema.Document)); _listItemType = ListItemTypes.INSTANCE.GetListItemType(listName); }
public SkylineDataSchema(IDocumentContainer documentContainer, DataSchemaLocalizer dataSchemaLocalizer) : base(dataSchemaLocalizer) { _documentContainer = documentContainer; _document = _documentContainer.Document; ChromDataCache = new ChromDataCache(); _replicates = CachedValue.Create(this, CreateReplicateList); _resultFiles = CachedValue.Create(this, CreateResultFileList); _elementRefCache = CachedValue.Create(this, () => new ElementRefs(Document)); _annotationCalculator = CachedValue.Create(this, () => new AnnotationCalculator(this)); }
public ListLookupPropertyDescriptor(SkylineDataSchema dataSchema, string listName, PropertyDescriptor innerPropertyDescriptor) : base(innerPropertyDescriptor.Name, GetAttributes(innerPropertyDescriptor)) { SkylineDataSchema = dataSchema; ListName = listName; _listItemType = ListItemTypes.INSTANCE.GetListItemType(listName); _innerPropertyDescriptor = innerPropertyDescriptor; _listData = CachedValue.Create(dataSchema, () => { return(SkylineDataSchema.Document.Settings.DataSettings.Lists.FirstOrDefault(list => list.ListDef.Name == ListName)); }); }
public AnnotationPropertyDescriptor(SkylineDataSchema dataSchema, AnnotationDef annotationDef, bool isValid) : this(dataSchema, annotationDef, GetAttributes(annotationDef)) { _isValid = isValid; _annotationDef = CachedValue.Create(dataSchema, () => FindAnnotationDef(annotationDef)); }