[Nexus-developers] Java helper routines

Mark Koennecke Mark.Koennecke at psi.ch
Tue Sep 4 14:10:24 BST 2007


Stuart,

Campbell, SI (Stuart) schrieb:
> Hi everyone,
>
> Just wanted to ask people's opinions on a suggestion...
>
> I have been playing with the jnexus API quite a bit recently.  I have
> been wrapping a lot of the NAPI functions in routines that make it feel
> more Java/OO like (and I think that Pete has been doing something
> similar).
>
> I was wondering if this sort of thing is something we should consider
> including in the distribution for Java and maybe even other OO
> languages.
>
> The main question probably is whether it should be included in the
> 'contrib' area, or added on top of the jnexus stuff.
>
> What does everyone think ?
>
>   

In general I do not mind adding this to the main NeXus-Java 
distribution. I even think this is a
good idea. But I would  like to ask you to do the following:

Make a little presentation about what you did and how you did it for the 
next NIAC meeting
and we should this. There are various issues we have to agree upon:
- Is your class structure agreeable to everyone?
- Also for other OO languages?
- When I wrote the Java-NeXus API (way back in time it seems) I thought 
hard about a more OO
   approach. I then realized that the HDF-API is its own state machine 
and it would be quite hard to
   keep track of this state.  I would be interested how you solved this. 
Do you keep the file structure
   in memory (with deferred loading for large datasets)  and deserialize 
and serialize on
   NXopen/NXclose?
 

                         Regards,

                                     Mark


More information about the NeXus-developers mailing list