Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Level/Version checks
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
Level/Version checks 24 Nov '10 10:45

Hi all,

Just to make sure people know about some recent changes in JSBML, I am
writing this short e-mail.

Instead of keeping one field for "level" and another one for "version",
AbstractSBase now contains both fields in a ValuePair<Integer, Integer>,
which implements the Comparable interface. Therefore, it is possible to
check if a level/version combination is higher than another one.

For instance, you can implement checks such as

if (getLevelAndVersion().compareTo(2, 4) < 0) {
// do something
}

In this way, comparisons are much easier. This compareTo method will
return a value smaller then, equal to or larger than zero if the given
level/version combination is greater, equal or smaller than the
level/version combination of this instance of SBase.

I hope you like it.

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

      

SubjectPosterDate
Read Message   Level/Version checks  Andreas Dräger24 Nov '10 10:45
Previous Topic:Status
Next Topic:setting automatically an SBO term for time
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.