This week involved a lot of investigation and figuring out how to use Devisers' key attributes to import modules necessary for JSBML.
Here's the summary what was done during this weekend.
Looks like the best approach will be hybrid and one idea is to use attributes' 'name' or 'xml_name', for example if it is 'compartment', then import org.sbml.jsbml.Compartment and org.sbml.jsbml.CompartmentalizedSBase or if it is 'reaction' then import org.sbml.jsbml.Reaction and associated modules.
The idea is to create a dictionary with the package name and attribute name and to use previous tree structure to detect if it is an interface or not, but this part needs to be discussed with the mentors.
Here's the summary what was done during this weekend.
- Removed mId and mName from variable generation
- Removed Id and Name methods generation from SetGetFunctions.py
- Added simple constructor for JSBML
Looks like the best approach will be hybrid and one idea is to use attributes' 'name' or 'xml_name', for example if it is 'compartment', then import org.sbml.jsbml.Compartment and org.sbml.jsbml.CompartmentalizedSBase or if it is 'reaction' then import org.sbml.jsbml.Reaction and associated modules.
The idea is to create a dictionary with the package name and attribute name and to use previous tree structure to detect if it is an interface or not, but this part needs to be discussed with the mentors.
Hello, sorry you were having a hard time with this. Just in case this is still an issue, i would recommend simply using a globbing expression for now, and simply include all files. Then you won't have to worry about import statements at all. So something like:
ReplyDeleteimport org.sbml.jsbml.*
import org.sbml.jsbml.util.*;
import org.sbml.jsbml.util.filters.*
would do just fine to import all of the core jsbml features. Then you would simply use another globbing expression for the package itself that you are generating and potentially another one for other packages used.
best
Frank