| Author | Topic |
Posts: 273
Registered: June 2006
|
|
Re: Problems found so far
|
03 Dec '10 02:08

|
 |
|
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
|
|
|