1 / 13

Anaphe Developer Interfaces

Lorenzo Moneta CERN AIDA Workshop 3/7/2003. Anaphe Developer Interfaces. Anaphe Architecture. AIDA interfaces. IHistogram. IPlotter. IFitter. developer interf. IDevHistogram. IDevPlotter. IDevFitter. wrapper layer. AIDA Plotter. AIDA Fitter. Basic components. Histo library.

royce
Download Presentation

Anaphe Developer Interfaces

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lorenzo Moneta CERN AIDA Workshop 3/7/2003 Anaphe Developer Interfaces

  2. Anaphe Architecture AIDA interfaces IHistogram IPlotter IFitter developer interf. IDevHistogram IDevPlotter IDevFitter wrapper layer AIDA Plotter AIDA Fitter Basic components Histo library Grace Plotter FML

  3. Design

  4. Histogram Developer Interfaces • Histogram Developer interface: • IDevHistogram: • Inherits from IHistogram1D and IDevManagedObject • Methods: • bool setBinContents(iBin, entries, height, error , centre); • bool setRms( rms); • IDevHistogramFactory • no inheritance from IHistogramFactory • Factory to create unmanaged objects • Same methods as in IHistogramFactory but without the name • IDevHistogram1D createCopy(const IHistogram1D & h); • Anaphe::HistogramFactory implements IHistogramFactory using the IDevHistogramFactory

  5. Inheritance tree for Anaphe::Histogram1D IHistogram1D IManagedObject IDevManagedObject IDevHistogram1D Anaphe::Histogram1D

  6. IDevManagedObject • IDevManagedObject • All developer interfaces for objects which are going to be stored inherits from IDevManagedObject • Store needs to know if an update is needed of an existing persistency object • Methods: bool isUpToDate(); void setUpToDate( bool isUpToDate ); bool setName( const std::string& newName ); std::string userLevelClassType();

  7. Anaphe Store • Tree is separated from Store implementation • Depends only on developer interface IStore • Store does not depend on the Tree • No dependency between Store and any particular implementation of the data objects • Store deals only with IDevHistogram, IDevClouds, IDevTuple, etc… • Copy them in the corresponding persistency objects when writing • Use developer factory interface to create them when reading • No need to use tree to create a IDevHistoframFactory

  8. IStore developer interface

  9. IDevTree interface

  10. Factory Providers • Each component library defines a unique global symbol : • FactoryProvider for all the various data objects • Histograms, Tuples, Functions and DataPointSet • StoreFactories fo each store implementation • TreeFactoryProvider for the tree • AnnotationFactory for the annotation implementation • Access to the symbol is provided through the IDevAnalysisFactory interface • When the library is loaded it registers in the AnalysisFactory • No dynamic loaded is supported but can be easley added, by implementing the AnalysisFactory with a PluginManager

  11. Tuples developer interfaces • IDevTuple • IBackingStore • Read/write a row • Bind variables Other Tuple developer Interfaces: ITupleHeader, ITupleVariableDescription, ITupleVariableStatistics

  12. Functions and Fitting • IDevFunction • IDevFunctionCatalog • IDevFunctionFactory • IDevFitter • IDevFitData • IDevFitDataIterator • IDevFitResult • IDevFitParameterSettings

  13. Conclusions • Need developer interfaces for AIDA objects : • Setter methods for efficient copying • Some common properties for storing and plotting • E.g. isValid() ? • Type information ? • Need to be able to create unmanaged objects • IDevFactories ? • Can we remove managedObject from user interface ? • Possibility to leave management to specific implementations • Now IManagedObject appear only in • IManagedObject * find(std::string path); • std::string findPath(const IManagedObject & obj); • Store interface

More Related