[Developers] new attribute engine

Helene Payraudeau helene.payraudeau at dgb-group.com
Thu Jul 28 14:57:37 CEST 2005


Dear all,

the code of the new attribute engine is now in the CVS repository; if 
you work on CVS and want to make an update, please remember to rebuild 
all the dependancies.

A detailed notice describing how to make new attributes and how to 
'translate' the old ones to fit with the new attribute engine will be 
provided with the developers' release.

if you use CVS and still want to start now making new Attributes, here 
are some clues:

first let's have a look at a 'typical' attribute, I will take the 
similarity
( include/Attributes/similarityattrib.h )

 you will notice here some new functions :

    *initClass()  where all the parameters are setup, numbers and types 
of the input data and of the outputs are specified.

    *createInstance( Desc& ) is now a standart function for every attribute.

    *updateDesc( Desc& ) will be used not only to update the parameters 
but also the number and type of the outputs and to add or disable some 
inputs.

    *getInputOutput( int input, TypeSet<int>& res ) const
here you can specify what are the outputs you need for calculation among 
all those provided by your input data;

    *getInputData( const BinID&, int idx ) where you now specify how to 
get your input data, if you 'translate' an attribute, that is basically 
the content of the Task::Input::set of the old attribute.

    *computeData( const DataHolder&, const BinID& relpos,
                                     int t0, int nrsamples ) const
this is where the algorithm for calculating the attribute is specified, 
again if you are 'translating' an attribute, that is basically the 
content of the nextStep() function of the old attribute.

Please remember that the calculation of the attributes is no longer made 
on traces but using a whole new object, the DataHolder, and that the 
reference is no longer time but sample number.

Regards,
Helene

   

-- dGB Earth Sciences B.V.
-- Nijverheidstraat 11-2, 7511 JM Enschede, The Netherlands
-- mailto: helene.payraudeau at dgb-group.com, http://www.dgb-group.com
-- Tel: +31 53 4315155 , Fax: +31 53 4315104





More information about the Developers mailing list