[Logo] VUE Users Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Login] Login 
If this is your first visit to the new VUE forums, you can login using the same username and password you currently use on VUE's website. If you need an account, please create one through VUE's website. If you have problems, please contact us via the contact form on http://vue.tufts.edu
API Documentation? (specifically saving/loading/parsing)  XML
Forum Index » Developers' Corner
Author Message
Neil Pilgrim


Joined: 09/01/2008 10:58:24
Messages: 19
Offline

Hi,

I've been playing around with using python to load VUE maps via an XML/SGML library, then processing them.

Is there a separate part of the VUE API which handles loading/parsing/saving etc. of the files? Then I would not have to handle the reading/writing myself.

I'm not actually that keen on using java if I can really help it, so I might try using jython!

Thanks,

--
Neil
Anoop Kumar


Joined: 08/08/2008 11:36:13
Messages: 49
Offline

Hi Neil,

The code for reading/saving VUE maps is in tufts.vue.action package. The class OpenAction has methods to load a VUE map and the code to save VUE files is distributed in several classes in that package.

I have not used jython but assume you can include VUE.jar in class path and make specific API calls.

best,
Anoop
Neil Pilgrim


Joined: 09/01/2008 10:58:24
Messages: 19
Offline

Thanks Anoop,

I am not familiar with the source (or java!), however do you have the API documented, eg. I guess using tools such as doxygen or javadoc? (ideally online! though I guess its different for 2.2.8, 3pre etc.) You see, I'm not sure whether the introspection/reflection using dir() and similar in python works with namespaces imported from java in jython.

I am thinking of trying something like this, since it means I could use the VUE save/load functions, which would be independent of the file format as/when VUE changes. Of course, with a stable XML format it might be less of an issue, but nevertheless...

Thanks!

--
Neil
 
Forum Index » Developers' Corner
Go to:   
Powered by JForum 2.1.8 © JForum Team