Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » libsbml-development » New constructors in libSBML-4
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Sarah Keating


Posts: 413
Registered:
May 2004
New constructors in libSBML-4 18 May '09 09:37 Go to previous message

Dear libSBML-users

New constructors in libSBML-4.

LibSBML-4-beta introduced new constructors for SBML objects and removed
any previously available constructors. These constructors are of the form

Species(unsigned int level, unsigned int version, XMLNamespaces xmlns = 0);

The rationale behind these constructors was to allow each object to
clearly identify which level/version of SBML is intended and facilitate
the introduction of the L3 SBML with extensions.

At present the namespaces variable defaults to NULL since the core sbml
namespaces can be deduced from the level and version. However, it has
since been pointed out that identifying both level/version and namespace
is a duplication of information. It is possible to abstract the
level/version from the namespace.

So we have two options and would like your opinions:

1) leave the constructors as they are and check for mismatches between
level/version and namespaces

2) reduce the arguments to the constructors to be only namespaces -
which would no longer have a default value

In case 2 it would be necessary to declare the core sbml namespace but
libSBML would provide functions to facilitate this; e.g.

getL2V3Namespace()
getL2V4Namespace()

NOTE: using libSBML-4 it will be possible to create a complete model
using ONLY an SBMLDocument constructor and createXXX functions. This
completely eliminates the potential for mismatches between
levels/versions of different objects. [There were a couple of create
functions missing but this has been remedied :-) ]

We are also aware that we removed any constructors that allowed
variables to be set within the object on creation. In particular it was
possible to set id and name using a constructor. Obviously it would be
possible to implement versions of the new constructors to enable this
and thus we would be interested in feedback relating to the use of
constructors with additional variables. Unfortunately even if libSBML-4
implements these it will NOT reduce the need to change code that uses
libSBML-3 with these types of constructors to code compatible with
libSBML-4.

Thanks

Sarah, Akiya & Mike
____________________________________________________________
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   New constructors in libSBML-4  Sarah Keating18 May '09 09:37
Read Message   Re: New constructors in libSBML-4 Stefan.Hoops18 May '09 10:06
Read Message   Re: New constructors in libSBML-4 Mike Hucka19 May '09 22:09
Read Message   Re: New constructors in libSBML-4 Sarah Keating26 May '09 17:19
Read Message   Re: New constructors in libSBML-4 Lucian Smith18 May '09 11:04
Previous Topic:Deleting controlled vocabulary terms or URIs within those terms
Next Topic:If there were a pure Java libSBML ...
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.