Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Problems found so far
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Andreas Dräger


Posts: 273
Registered:
June 2006
Re: Problems found so far 03 Dec '10 02:08 Go to previous messageGo to previous message

Hi everybody,

> There has been request in libsbml to have a method to set the L2
> defaults for L3 elements, so that you do not have
> to do all the setXX yourself, having to recode the same methods as in
> libsbml if you want to provide some default values for your users.
> I think we should have for the next release, something equivalent.

We could provide such an additional method. But I would suggest to have
a method such as

public boolean initDefaults(int level, int version)

which is not necessarily bound to L2V4 or what ever. The return type
would say wether calling this method lead to a change or not. We could
then change all these existing initDefault methods to

public void initDefaults() {
initDefaults(getLevel(), getVersion());
}

That's it. In this way, we would give people the chance to re-initialize
a data type as it would be for a certain LV combination.
Furthermore, we should also make sure that listeners are triggered even
in the initDefaults method. I think this is currently not the case.

Cheers
Andreas

--
Dipl.-Bioinform. Andreas Dräger
Eberhard Karls University Tübingen
Center for Bioinformatics (ZBIT)
Sand 1
72076 Tübingen
Germany

Phone: +49-7071-29-70436
Fax: +49-7071-29-5091
____________________________________________________________
To manage your jsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/jsbml-development

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

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

      

SubjectPosterDate
Read Message   Problems found so far rodrigue29 Nov '10 08:55
Read Message   Re: Problems found so far Sarah Keating30 Nov '10 01:28
Read Message   Re: Problems found so far rodrigue30 Nov '10 01:55
Read Message   Re: Problems found so far Andreas Dräger02 Dec '10 09:32
Read Message   Re: Problems found so far rodrigue02 Dec '10 14:04
Read Message   Re: Problems found so far Andreas Dräger02 Dec '10 09:40
Read Message   Re: Problems found so far rodrigue02 Dec '10 13:56
Read Message   Re: Problems found so far Andreas Dräger03 Dec '10 02:04
Read Message   Re: Problems found so far rodrigue03 Dec '10 02:10
Read Message   Re: Problems found so far  Andreas Dräger03 Dec '10 02:08
Read Message   Re: Problems found so far rodrigue03 Dec '10 02:11
Previous Topic:JSBML interface
Next Topic:Using SBO term to annotate SBML Unit and UnitDefinition
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.