Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » public static Type getTypeFor(String type) in ASTNode
Show: Today's Posts :: Unanswered Posts :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
AuthorTopic
Andreas Dräger


Posts: 273
Registered:
June 2006
public static Type getTypeFor(String type) in ASTNode 02 Aug '11 07:53 Go to next message

Dear all,

I just noticed the method mentioned above that is actually similar to
the entries of the XML file ASTNodeTokens.xml in the resources
directory. Maybe we should complete the tokens file with the other
entries and then shorten the method in the ASTNode class to use
Properties to return the desired type. In this way, we could work more
flexible with types and tokens.

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

      
rodrigue


Posts: 307
Location:
Cambridge UK
Registered:
February 2005
Re: public static Type getTypeFor(String type) in ASTNode 02 Aug '11 08:34 Go to previous message

On 08/02/2011 03:53 PM, Andreas Dräger wrote:
> Dear all,
>
> I just noticed the method mentioned above that is actually similar to
> the entries of the XML file ASTNodeTokens.xml in the resources
> directory. Maybe we should complete the tokens file with the other
> entries and then shorten the method in the ASTNode class to use
> Properties to return the desired type. In this way, we could work more
> flexible with types and tokens.

I am not sure we should go this way. At least the file would have to be
more complex than it is at the moment.

ASTNode.Type.getTypeFor is used to recognized mathML names,
ASTNodeTokens.xml is used to read infix formula in the SBML level 1 style.
So you would have to have two keys in the XML files for the two usage as
some names are different.

Also the current file could be use to detect the valid SBML level 1
formula. We could also add an other attribute to say if the entry is
valid in L1 or not.

And as the current system is working quite well, I would prefer that any
changes be done after the long awaited first official stable release
that should come soon, at least before or around COMBINE 2011.

Cheers,
Nico

____________________________________________________________
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

      
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:New listener framework for all elements within the SBML tree
Next Topic:jsbml - LayoutParser
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.