| Author | Topic |
Posts: 273
Registered: June 2006
|
|
Re: create compartment is missing id
|
18 Apr '11 20:17

|
 |
|
> I would suggest that either creation of SBML objects without any arguments
> be illegal, or that they default to the *latest* level and version, not
> the first.
Hi Lucian,
Actually, there is no default Level/Version combination in JSBML at
the moment. If it is unspecified, [l, v] will be [-1, -1], i.e., kind
of invalid, just like in libSBML. The problem in this example was that
when writing SBML it was checked if the level attribute is greater
than one. If this was the case, the id was written. Locally, I changed
the check to if level != 1 write the id. In this way, the id will also
be written if the level attribute is undefined. I'm going to commit
this later on.
However, there is still the question
* if we should have a static field, maybe in SBMLDocument, for the
latest Level/Version combination and set this as default when creating
an element without specifying the Level/Version combination or
* if we should stick with setting L/V to -1, -1 in this case?
Cheers
Andreas
--
Dr. Andreas Dräger
University of Tuebingen
Center for Bioinformatics Tuebingen (ZBIT)
Sand 1
72076 Tübingen
Germany
Phone: +49-7071-29-78982
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
|
|
|