Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Units inheritance in Level 3
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: Units inheritance in Level 3 20 Mar '12 02:55 Go to previous messageGo to previous message

Am 3/20/12 10:50 AM, schrieb Sarah Keating:
> Hi Andreas
>
>> compartment and fix this problem for Level 3 models. Furthermore, when
>> deriving units, I would also like to have a mechanism that goes through
>> all units in the model's list of units and identifies the first unit
>> that is identically defined as the derived unit. In this way, the
>> derived unit would preferably be part of the SBML model, only in some
>> cases it would not be part of the model. Currently, it might happen that
>> the getDerivedUnits() method returns some unit definition that is
>> equally defined as some other unit definition within the model, but the
>> returned element is not part of the model.
>
> Can I clarify if I understand this correctly ?
>
> The function getDerivedUnits() returns a unitDefinition object (as
> defined by SBML). It is possible that the Model already contains a
> unitDefinition object which is identical to the returned
> unitDefinition. If this is the case you want to return the actual
> instance of the unitDefinition from the model rather than create a new
> unitDefinition object that is identical to one that already exists.
>
> Is that correct ?

Hi Sarah,

Yes. That's what I would like to do. It is actually very easy using a
filter for listOf<UnitDefinition> that accepts the first identical
UnitDefinition (using a call like
UnitDefinition.areIdentical(myJustDerivedUnit, unitNumberXXfromTheList),
with XX being the counter in the for-each loop).

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

      

SubjectPosterDate
Read Message   Units inheritance in Level 3 Andreas Dräger15 Mar '12 09:19
Read Message   Re: Units inheritance in Level 3 Sarah Keating20 Mar '12 02:50
Read Message   Re: Units inheritance in Level 3 Andreas Dräger20 Mar '12 03:00
Read Message   Re: Units inheritance in Level 3 Sarah Keating20 Mar '12 02:50
Read Message   Re: Units inheritance in Level 3  Andreas Dräger20 Mar '12 02:55
Read Message   Re: Units inheritance in Level 3 Sarah Keating20 Mar '12 03:16
Read Message   Re: Units inheritance in Level 3 Andreas Dräger20 Mar '12 04:56
Read Message   Re: Units inheritance in Level 3 Andreas Dräger21 Mar '12 00:13
Previous Topic:Problem reading history element?
Next Topic:Unsetting substance units in Model
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.