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;
 }
示例#2
0
 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);
 }
示例#3
0
 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);
 }
示例#4
0
        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));
 }