Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Arguments to FunctionDefintions
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
rbyrnes


Posts: 28
Registered:
September 2008
Re: Arguments to FunctionDefinitions 02 Mar '12 09:27 Go to previous messageGo to previous message

Andreas, Nicolas--

Thanks very much for your suggestions!

1. I can't find the ASTNode.Type of LAMBDA in my download of JSBML.

2. Actually, I was looking for a way to take an input string such as "k1 * S1 * 2" such as might be entered into a text field and passing it to a form of the setMath( ) function in order to get it into the FunctionDefinition.

However, in the absence of such a direct method, a workaround might perhaps take the form of code (I've found it in JigCell) that can convert a String such as this into MathML that I could pass to the setFormula(String formula) method.

3. As for working with arguments: I've found that the following code fragment

FormulaCompiler fc = new FormulaCompiler( );
fc.function( fd, (java.util.List) paramList );

where paramList is an ArrayList of ASTNodes of arguments would seem to be able to pass arguments into the function definition. Not sure how this would relate to the body of the formula, though.

--JavaBob

      

SubjectPosterDate
Read Message   Arguments to FunctionDefintions rbyrnes29 Feb '12 13:03
Read Message   Re: Arguments to FunctionDefinitions rbyrnes01 Mar '12 14:12
Read Message   Re: Arguments to FunctionDefinitions Andreas Dräger01 Mar '12 23:39
Read Message   Re: Arguments to FunctionDefinitions rodrigue02 Mar '12 01:19
Read Message   Re: Arguments to FunctionDefinitions rodrigue02 Mar '12 01:22
Read Message   Re: Arguments to FunctionDefinitions rodrigue02 Mar '12 01:30
Read Message   Re: Arguments to FunctionDefinitions  rbyrnes02 Mar '12 09:27
Read Message   Re: Arguments to FunctionDefinitions Andreas Dräger03 Mar '12 10:25
Read Message   Re: Arguments to FunctionDefinitions rbyrnes05 Mar '12 14:54
Read Message   Re: Arguments to FunctionDefinitions rbyrnes06 Mar '12 08:12
Read Message   Re: Arguments to FunctionDefinitions Andreas Dräger03 Mar '12 10:25
Previous Topic:JSBML modules
Next Topic:Release of SBMLsimulator 1.0-rc2
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.