Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-discuss » Changes coming in Level 3 Core
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Neil Swainston


Posts: 66
Location:
Manchester
Registered:
October 2007
Re: Changes coming in Level 3 Core 09 Jul '09 00:42 Go to previous messageGo to previous message

Hi all,

Not a biggy this one. Just something that I mentioned in Cambridge,
regarding the migration of id and name from SBase.

While I realise there is good reason to do this, I worry a little that
we're going to have to start writing code along the lines of...

if( sbase instanceof Species )
{
System.out.println( ( (Species)sbase ).getName() );
}
else if( sbase instanceof Compartment )
{
System.out.println( ( (Compartment)sbase ).getName() );
}
else if( sbase instanceof Reaction )
{
System.out.println( ( (Reaction)sbase ).getName() );
}

...with a number of checks and cast which are not the end of the
world, but a little "untidy".

As it is a *relatively* easy thing to do, could we shoe-horn in an
abstract class in the object hierarchy that could be extended by
Species, Compartment, Reaction, et al. as follows...


...this would allow NamedSBases to be passed around and prevent the
checks and casts highlighted above. Doing so wouldn't break any code
from early adopters of Level 3.

Cheers,

Neil.

Neil Swainston
Experimental Officer

Manchester Centre for Integrative Systems Biology
Manchester Interdisciplinary Biocentre
University of Manchester
Manchester M1 7DN
England

On 8 Jul 2009, at 19:11, Michael Hucka wrote:

> After massive amounts of discussion and work by many people,
> the SBML Editors have updated the plans for SBML Level 3
> Core and composed a detailed summary:
>
> http://sbml.org/Community/Wiki/SBML_Level_3_Core
>
> We welcome your input.
>
> MH (for all the SBML Editors)
>
> ____________________________________________________________
> To manage your sbml-discuss list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/sbml-discuss
>
> For a web interface to the sbml-discuss mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the sbml-discuss list,
> contact sbml-team@caltech.edu

____________________________________________________________
To manage your sbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-discuss

For a web interface to the sbml-discuss mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-discuss list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   Changes coming in Level 3 Core Mike Hucka08 Jul '09 11:11
Read Message   Re: Changes coming in Level 3 Core Lucian Smith08 Jul '09 12:49
Read Message   Re: Changes coming in Level 3 Core Allyson Lister09 Jul '09 00:17
Read Message   Re: Changes coming in Level 3 Core Nicolas Le Novere09 Jul '09 01:42
Read Message   Re: Changes coming in Level 3 Core Mike Hucka09 Jul '09 19:20
Read Message   Re: Changes coming in Level 3 Core Allyson Lister09 Jul '09 23:43
Read Message   Re: Changes coming in Level 3 Core Lucian Smith09 Jul '09 12:15
Read Message   Re: Changes coming in Level 3 Core Mike Hucka09 Jul '09 19:20
Read Message   Re: Changes coming in Level 3 Core Nicolas Le Novere10 Jul '09 00:15
Read Message   Re: Changes coming in Level 3 Core Stefan.Hoops10 Jul '09 07:49
Read Message   Re: Changes coming in Level 3 Core Mike Hucka12 Jul '09 21:39
Read Message   Re: Changes coming in Level 3 Core Nicolas Le Novere13 Jul '09 03:19
Read Message   Re: Changes coming in Level 3 Core Mike Hucka13 Jul '09 18:01
Read Message   Re: Changes coming in Level 3 Core Mike Hucka11 Jul '09 23:46
Read Message   Re: Changes coming in Level 3 Core Lucian Smith12 Jul '09 00:36
Read Message   Re: Changes coming in Level 3 Core Frank Bergmann12 Jul '09 19:44
Read Message   Re: Changes coming in Level 3 Core Pedro Mendes22 Jul '09 13:09
Read Message   Re: Changes coming in Level 3 Core Nicolas Le Novere22 Jul '09 14:59
Read Message   Re: Changes coming in Level 3 Core Pedro Mendes22 Jul '09 15:44
Read Message   Re: Changes coming in Level 3 Core Lucian Smith22 Jul '09 15:50
Read Message   Re: Changes coming in Level 3 Core  Neil Swainston09 Jul '09 00:42
Read Message   Re: Changes coming in Level 3 Core Sarah Keating09 Jul '09 09:41
Read Message   Re: Changes coming in Level 3 Core Neil Swainston01 Sep '09 05:51
Read Message   Re: Changes coming in Level 3 Core Allyson Lister04 Sep '09 05:28
Read Message   Re: Id/Name not on SBase Sarah Keating05 Sep '09 12:34
Read Message   Re: [sbml-discuss] Id/Name not on SBase Allyson Lister05 Sep '09 14:36
Read Message   Re: [sbml-discuss] Id/Name not on SBase Sarah Keating07 Sep '09 08:14
Read Message   Re: [sbml-discuss] Id/Name not on SBase Sarah Keating07 Sep '09 08:14
Read Message   Re: Id/Name not on SBase Allyson Lister05 Sep '09 14:36
Read Message   Re: [sbml-discuss] Id/Name not on SBase Neil Swainston06 Sep '09 10:44
Read Message   Re: [sbml-discuss] Id/Name not on SBase Sarah Keating07 Sep '09 08:27
Read Message   Re: [sbml-discuss] Id/Name not on SBase Sarah Keating07 Sep '09 08:27
Read Message   Re: [sbml-discuss] Id/Name not on SBase curoli07 Sep '09 09:50
Read Message   Re: [sbml-discuss] Id/Name not on SBase Allyson Lister10 Sep '09 02:03
Read Message   Re: [sbml-discuss] Id/Name not on SBase curoli10 Sep '09 05:29
Read Message   Re: [sbml-discuss] Id/Name not on SBase Allyson Lister10 Sep '09 02:03
Read Message   Re: [sbml-discuss] Id/Name not on SBase Sarah Keating07 Sep '09 08:27
Read Message   Re: [sbml-discuss] Id/Name not on SBase Neil Swainston06 Sep '09 10:44
Previous Topic:SBO annotation of units and unit definitions
Next Topic:DOTcvpSB toolbox for optimization in systems biology
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.