From: Eric F. <efe...@ph...> - 2008-10-28 10:41:05
|
Hi Rainer, No, I think this is a good decision, and I would not recommend to reintroduce observables if they are unsafe and may change in the future. As a C++ programmer, I am also supporting the hiding of internal implementation and give a public, restricted interface to users. Actually I just followed the structure of the odeSolver example that is in the CVS, and which uses this method to dump the variable values into a file, so I kept this method until now. Now, I would like to dump the variable values only and not the parameters into a file (the same way than odeSolver does). If I use getVariableValues(), I would need to have an array with these value names (or their index). Is it possible to have this list automatically? Let's say I change my SBML model, I would like to avoid changing the list of variable names in my program too. Is it possible to have either: - a "getAllVariableValues()" function that would automatically return all variable values and names in an array - a function that returns the variable names from the odeModel structure ? Thanks a lot, Eric > -----Original Message----- > From: Eric Fernandez > Sent: 28 October 2008 10:08 > To: 'Rainer Machne' > Subject: RE: [SOSlib-discuss] equivalent to observablesArray > ?[Scanned] > > Hi Rainer, > > No, I think this is a good decision, and I would not > recommend to reintroduce observables if they are unsafe and > may change in the future. As a C++ programmer, I am also > supporting the hiding of internal implementation and give a > public, restricted interface to users. Actually I just > followed the structure of the odeSolver example that is in > the CVS, and which uses this method to dump the variable > values into a file, so I kept this method until now. > > Now, I would like to dump the variable values only and not > the parameters into a file (the same way than odeSolver > does). If I use getVariableValues(), I would need to have an > array with these value names (or their index). Is it possible > to have this list automatically? Let's say I change my SBML > model, I would like to avoid changing the list of variable > names in my program too. > > Is it possible to have either: > - a "getAllVariableValues()" function that would > automatically return all variable values and names in an array > - a function that returns the variable names from the > odeModel structure ? > > Thanks a lot, > Eric |