|
Hello, All,
I think it would be best to have two levels of manipulator methods:
The safe level: methods that guarantee to always leave the model
valid. These methods only create or add an element to the model, if
all required parameters are specified accordingly. This is enforced in
part by API (e.g. the method arguments include everything necessary)
and in part by throwing exceptions (before doing anything that may not
be valid)
The hacker level: methods that make no such guarantee, but give you
flexibility (e.g. create or add an element now, set required
parameters later)
Take care
Oliver
On Mon, Sep 21, 2009 at 1:39 PM, Chris J. Myers <myers@ece.utah.edu> wrote:
>>
>> If a developer wants as minimal impact on his code as possible they
>> are
>> free to keep coding towards L2 for which libsml provides well defined
>> default values. For L3 support one can use the excellent libsbml
>> conversion facilities to read and write.
>>
> I'd really like to stop hearing this argument being made. I don't
> think we should be advocating continued use of L2 but rather
> developing an L3 that people are happy with. If the answer to all
> suggestions is if you don't like it, use L2, then L3 will never gain
> acceptance. In which case, why is L3 being developed? What good is a
> clean language if no one uses it?
>
> A better approach, in my opinion, is to come up with ways that people
> can use L3 for their needs. Case in point is my suggestion of adding
> a readSBML that provides defaults to required entries. Or, a
> readAndConvert function which would also need to provide defaults
> since L2 had defaults. I really think it is problematic to allow SBML
> files to be read that have missing, unspecified, required entries.
>
> Chris
>
> ____________________________________________________________
> 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
>
>
--
Oliver Ruebenacker, Computational Cell Biologist
BioPAX Integration at Virtual Cell (http://vcell.org/biopax)
Center for Cell Analysis and Modeling
http://www.oliver.curiousworld.org
____________________________________________________________
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
|