Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » libsbml-development » If there were a pure Java libSBML ...
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Neil Swainston


Posts: 66
Location:
Manchester
Registered:
October 2007
Re: If there were a pure Java libSBML ... 19 May '09 02:25 Go to previous messageGo to previous message

Hi all,

I take on board the complications surrounding platform independence
and the hassles therein.

As far as the second issue goes, I agree that it would be nice to
exploit Java features such as this (and equals() and comparable
methods etc.) but personally don't think that it would be a huge
amount of hassle to put together a few helper classes for us Javans to
do things like this:

/**
*
* @param model
* @return List<Species>
*/
public static List<Species> getListOfSpecies( final Model model )
{
final List<Species> list = new ArrayList<Species>();
final ListOfSpecies listOfSpecies = model.getListOfSpecies();

for( long l = 0; l < listOfSpecies.size(); l++ )
{
list.add( listOfSpecies.get( l ) );
}

return list;
}

I'm not sure that it's Mike et al.'s responsibility to do things that
we could be doing and sharing between ourselves. I've got a library of
libsbml-related Java classes that I recently shared up at http://sbml.org/Community/Programs/libAnnotationSBML
. I'm sure other Java-ites have the odd class that would be of
interest to the community as a whole. I reckon if we're more active in
sharing them, then I'd imagine that the requests for a pure Java
implementation would diminish.

Cheers,

Neil.

Neil Swainston
Experimental Officer

Manchester Centre for Integrative Systems Biology
Manchester Interdisciplinary Biocentre
University of Manchester
Manchester M1 7DN
England

On 18 May 2009, at 23:08, Michael Hucka wrote:

>>>>>> On 18 May 2009, Neil Swainston
>>>>>> <neil.swainston@manchester.ac.uk> wrote:
> NS> Hi Mike, Did you get convincing reasons as to why the
> NS> current JNI approach is unsatisfactory?
>
> Hi Neil,
>
> It's mostly the expected reasons -- portability, deployment,
> and Java-ishness of the API.
>
> Since the survey is anonymous, I think it's ok to report the
> specific comments about this issue here. Here they are (in
> no particular order):
>
> "The Java binding currently leads to plattform dependence
> of libSBML and therefore the great advantage of the
> plattform independence of Java gets lost. It would be
> beneficial to have a Java implementation."
>
> "The java API could make use of java generics instead of
> having a ListOfX for every type X. For example,
> List<Species> instead of ListOfSpecies."
>
> "I know it isn't really practical at all, but I really
> dislike having to install the C++ libs everywhere I want to
> use the jars :)"
>
> "Having a pure java libSBML."
>
> MH
>
> ____________________________________________________________
> To manage your libsbml-development list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/libsbml-development
>
> For a web interface to the libsbml-development mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the libsbml-development list,
> contact sbml-team@caltech.edu
>

____________________________________________________________
To manage your libsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-development

For a web interface to the libsbml-development mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the libsbml-development list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   If there were a pure Java libSBML ... Mike Hucka18 May '09 13:18
Read Message   Re: If there were a pure Java libSBML ... Neil Swainston18 May '09 13:32
Read Message   Re: If there were a pure Java libSBML ... curoli18 May '09 13:59
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka18 May '09 15:13
Read Message   Re: If there were a pure Java libSBML ... curoli18 May '09 16:25
Read Message   Re: If there were a pure Java libSBML ... Neil Swainston19 May '09 03:01
Read Message   Re: If there were a pure Java libSBML ... curoli19 May '09 10:10
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka19 May '09 10:44
Read Message   Re: If there were a pure Java libSBML ... curoli19 May '09 14:04
Read Message   Re: If there were a pure Java libSBML ... Neil Swainston19 May '09 12:48
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka18 May '09 15:08
Read Message   Re: If there were a pure Java libSBML ...  Neil Swainston19 May '09 02:25
Read Message   Re: If there were a pure Java libSBML ... Lucian Smith18 May '09 14:11
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka19 May '09 10:53
Read Message   Re: If there were a pure Java libSBML ... Frank Bergmann18 May '09 14:12
Read Message   Re: If there were a pure Java libSBML ... Stefan.Hoops19 May '09 07:55
Read Message   Re: If there were a pure Java libSBML ... curoli19 May '09 10:31
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka19 May '09 10:50
Read Message   Re: If there were a pure Java libSBML ... rodrigue20 May '09 02:23
Read Message   Re: If there were a pure Java libSBML ... rodrigue20 May '09 01:47
Read Message   Re: If there were a pure Java libSBML ... Stefan.Hoops20 May '09 11:57
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka20 May '09 12:35
Read Message   Re: If there were a pure Java libSBML ... Stefan.Hoops20 May '09 13:59
Read Message   Re: If there were a pure Java libSBML ... rodrigue21 May '09 03:23
Read Message   Re: If there were a pure Java libSBML ... Mike Hucka21 May '09 11:32
Read Message   Re: If there were a pure Java libSBML ... curoli23 May '09 08:40
Read Message   Re: If there were a pure Java libSBML ... Neil Swainston24 May '09 04:52
Read Message   Re: Java@EBI rodrigue21 May '09 02:07
Previous Topic:New constructors in libSBML-4
Next Topic:Problem with libsbml C# bindings.
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.